parent_url
stringlengths 41
46
| parent_score
stringlengths 1
4
| parent_body
stringlengths 25
35.5k
| parent_user
stringlengths 37
42
| parent_title
stringlengths 12
150
| accepted
bool 2
classes | body
stringlengths 4
36.7k
| score
stringlengths 1
4
| user
stringlengths 37
42
| answer_id
stringlengths 1
6
| __index_level_0__
int64 0
322k
|
---|---|---|---|---|---|---|---|---|---|---|
https://tex.stackexchange.com/questions/2095
|
130
|
How do I typeset an entire document in sans-serif, e.g. Helvetica, without littering the document with font changes for every heading/paragraph, etc.? Like in [How to set the font for a \section title (and chapter etc)](https://tex.stackexchange.com/questions/1455/how-to-set-the-font-for-a-section-title-and-chapter-etc/1477#1477), but with the paragraphs all in sans-serif.
For example, I've seen documents typeset in Computer Modern and then switched to Palatino, but can I do the same with Helvetica with a few commands at the beginning?
(And please don't tell me to use a serif font for body copy / paragraphs. I know. I'm trying to use latex to typeset my resume to look like the one I've created in a word processor, which is hard to maintain but looks good. I'm hoping latex will let me do more advanced formatting/layout, separating content from form.)
|
https://tex.stackexchange.com/users/251
|
What is the simplest way to typeset an entire document in sans-serif?
| true |
`\renewcommand{\familydefault}{\sfdefault}` will switch to using sans-serif for everything except mathematics. The sans-serif will be computer modern sans unless you also put `\usepackage{helvet}` in the preamble in order to set the default sans font to a [clone of Helvetica](https://en.wikipedia.org/wiki/Nimbus_Sans#Nimbus_Sans_L) (or `\usepackage{avant}` for Avant-Garde, etc.).
|
154
|
https://tex.stackexchange.com/users/627
|
2097
| 1,460 |
https://tex.stackexchange.com/questions/2099
|
698
|
I'm making all my diagrams in SVG format using Inkscape and then I export them to some other format (e.g. PDF, EPS or PNG). I wrote a short script that does this for me automatically, but I'd like to avoid this step, if possible --- sometimes the conversion from SVG converts the text labels into vectors, and that's annoying. Hence the question:
*Is there a way to include SVG diagrams directly without conversion to an intermediate format?*
Package suggestions, or instructions for specific LaTeX distribution are welcome. Tips and personal experience on which tools you have found to be working reliably would be also appreciated.
|
https://tex.stackexchange.com/users/711
|
How to include SVG diagrams in LaTeX?
| false |
Inkscape has a(n experimental) tikz exporter: [link](http://code.google.com/p/inkscape2tikz/). (I've never used it but perhaps someone who has will stop by and give a few more details.)
|
28
|
https://tex.stackexchange.com/users/86
|
2102
| 1,462 |
https://tex.stackexchange.com/questions/2099
|
698
|
I'm making all my diagrams in SVG format using Inkscape and then I export them to some other format (e.g. PDF, EPS or PNG). I wrote a short script that does this for me automatically, but I'd like to avoid this step, if possible --- sometimes the conversion from SVG converts the text labels into vectors, and that's annoying. Hence the question:
*Is there a way to include SVG diagrams directly without conversion to an intermediate format?*
Package suggestions, or instructions for specific LaTeX distribution are welcome. Tips and personal experience on which tools you have found to be working reliably would be also appreciated.
|
https://tex.stackexchange.com/users/711
|
How to include SVG diagrams in LaTeX?
| false |
[Some additional information](http://wiki.inkscape.org/wiki/images/SVG_in_LaTeX.pdf) concerning Andrew's answer. As far as I know, LaTeX does *not* support including SVG files directly.
|
21
|
https://tex.stackexchange.com/users/870
|
2103
| 1,463 |
https://tex.stackexchange.com/questions/2099
|
698
|
I'm making all my diagrams in SVG format using Inkscape and then I export them to some other format (e.g. PDF, EPS or PNG). I wrote a short script that does this for me automatically, but I'd like to avoid this step, if possible --- sometimes the conversion from SVG converts the text labels into vectors, and that's annoying. Hence the question:
*Is there a way to include SVG diagrams directly without conversion to an intermediate format?*
Package suggestions, or instructions for specific LaTeX distribution are welcome. Tips and personal experience on which tools you have found to be working reliably would be also appreciated.
|
https://tex.stackexchange.com/users/711
|
How to include SVG diagrams in LaTeX?
| false |
Having read your comment, maybe a combination of Inkscape and the [overpic package](http://alan.smcvt.edu/tex-archive/macros/latex/contrib/overpic/) may be helpful. This package allows you to write any LaTeX commands on top of an existing picture. A colleague of mine uses it to draw pictures of free-form curves, for example, and adds all labels and points of interests manually. The package allows you to display a grid, so it should not be too tedious---depending on the size of your picture, of course.
|
11
|
https://tex.stackexchange.com/users/870
|
2105
| 1,465 |
https://tex.stackexchange.com/questions/2099
|
698
|
I'm making all my diagrams in SVG format using Inkscape and then I export them to some other format (e.g. PDF, EPS or PNG). I wrote a short script that does this for me automatically, but I'd like to avoid this step, if possible --- sometimes the conversion from SVG converts the text labels into vectors, and that's annoying. Hence the question:
*Is there a way to include SVG diagrams directly without conversion to an intermediate format?*
Package suggestions, or instructions for specific LaTeX distribution are welcome. Tips and personal experience on which tools you have found to be working reliably would be also appreciated.
|
https://tex.stackexchange.com/users/711
|
How to include SVG diagrams in LaTeX?
| false |
If you figures are sufficiently simple TikZ 2.0 provides the SVG path operation:
```
\path . . . svg[<options>] "<path data>" ... ;
```
See the pgfmanual section 14.12. Only SVG 1.1 path data is supported.
|
50
|
https://tex.stackexchange.com/users/565
|
2106
| 1,466 |
https://tex.stackexchange.com/questions/2099
|
698
|
I'm making all my diagrams in SVG format using Inkscape and then I export them to some other format (e.g. PDF, EPS or PNG). I wrote a short script that does this for me automatically, but I'd like to avoid this step, if possible --- sometimes the conversion from SVG converts the text labels into vectors, and that's annoying. Hence the question:
*Is there a way to include SVG diagrams directly without conversion to an intermediate format?*
Package suggestions, or instructions for specific LaTeX distribution are welcome. Tips and personal experience on which tools you have found to be working reliably would be also appreciated.
|
https://tex.stackexchange.com/users/711
|
How to include SVG diagrams in LaTeX?
| false |
The latest version of **Inkscape** supports *PDF+LaTeX* export. The graphic itself is exported as *PDF*, but all text can be put into a `.tex` file. This way all the text appears in your document font.
The latest **Inkscape** version can be found on [the official site](https://inkscape.org/release/).
There is a free article about the export on CTAN: [*How to include an SVG image in LaTeX*](http://mirrors.ctan.org/info/svg-inkscape/InkscapePDFLaTeX.pdf).
~~In May 2015, you could read from that article, that the quickest way to get this done was:~~
```
inkscape -D -z --file=image.svg --export-pdf=image.pdf --export-latex
```
But as [Peter Mukhachev](https://tex.stackexchange.com/users/188244/peter-mukhachev) pointed out in his comment, the inkscape command has changed, it is now (as of *EDIT* July 2020) on more recent versions of inkscape correct like this:
```
inkscape -D image.svg -o image.pdf --export-latex
```
In Jan 2020 and **Inkscape 1.0beta2**, this command is correct for macOS Catalina (thanks to [moazzem](https://tex.stackexchange.com/users/189537/moazzem)'s comment):
```
/Applications/Inkscape.app/Contents/MacOS/inkscape -D -z image.svg --export-type="pdf" --export-file=image.pdf --export-latex
```
---
Then include the generated TeX file, which will automatically import the image:
```
\begin{figure}
\centering
\def\svgwidth{\columnwidth}
\input{image.pdf_tex}
\end{figure}
```
Be aware that this uses `\includegraphics` to insert the graphic, so you need to include `graphics` or `graphicx` in your document.
Notice that using `\input` you lose the **resizing functionality** of `\includegraphics[]{}`. Instead, you can use something like `\scalebox{}{}`. For instance:
```
\begin{figure}
\centering
\def\svgwidth{\columnwidth}
\scalebox{0.5}{\input{image.pdf_tex}}
\end{figure}
```
Further, here are two good things that I found over time of using this feature. Both are mentioned in the linked pdf, but I missed those hints for quite some time.
When you insert text, there is a little square in the textbox which shows you the alignment of the text. For example if you want to have an arrow pointing from your text to an object, make sure the justification is correct.
For some time I was thinking, that text could not handle line breaks, but it is possible if you flow text into a shape. Draw a rectangular shape, write some text, select both and then go in the text menu to "Flow into frame". The shortcut for this is `Alt` + `W`.
|
362
|
https://tex.stackexchange.com/users/632
|
2107
| 1,467 |
https://tex.stackexchange.com/questions/2108
|
8
|
Sometimes it would be convenient to have several versions of a package installed at once. For example I’d like to have a development version of TikZ for my own work and the current stable version to test whether code I share works with it.
Is there a standard way to do this?
Edit: I’m using Linux and TL 2010.
|
https://tex.stackexchange.com/users/83
|
Installing several versions of a package
| false |
The only way I can think of right now is to have several local trees with different package versions in them. Then you could hook the trees in your distribution. In e.g. MikTeX it is fairly easy to change the order in which trees are searched. Just make sure that the package you want to use is in the first tree.
This is however by far not an automated process....
|
3
|
https://tex.stackexchange.com/users/632
|
2109
| 1,468 |
https://tex.stackexchange.com/questions/2108
|
8
|
Sometimes it would be convenient to have several versions of a package installed at once. For example I’d like to have a development version of TikZ for my own work and the current stable version to test whether code I share works with it.
Is there a standard way to do this?
Edit: I’m using Linux and TL 2010.
|
https://tex.stackexchange.com/users/83
|
Installing several versions of a package
| false |
I don't think this would be hard to automate at all. Providing your environment exposes symlinks (`linux` and `windows` do, `mac` presumably as well), it should be pretty easy to set up a little script to switch various subtrees in and out. Include a call to `texhash` or whatever your distro gives you and you should be flying in no time at all. : )
|
2
|
https://tex.stackexchange.com/users/416
|
2111
| 1,469 |
https://tex.stackexchange.com/questions/2110
|
77
|
**Looking back, what really convinced you to begin writing with TeX or LaTeX?**
This question is "community wiki", so there's no reputation to lose or to gain.
Please don't write advantages of TeX and LaTeX or any pros and cons.
I hope to read about something like
* a drastic experience that led you to TeX,
* a beautiful book, paper or poster that changed your view dramatically,
* a first big success with a (La)TeX creation,
* a person who inspired you.
Anything in this spirit would be great. Please post just a single reason or event in each answer. If you further shared a similar experience that you read here, voting that up would be fine.
|
https://tex.stackexchange.com/users/213
|
Most significant reasons that led us to (La)TeX
| false |
The same reasons that led Knuth to creating TeX in the first place: to have our math texts look good.
|
25
|
https://tex.stackexchange.com/users/324
|
2112
| 1,470 |
https://tex.stackexchange.com/questions/2110
|
77
|
**Looking back, what really convinced you to begin writing with TeX or LaTeX?**
This question is "community wiki", so there's no reputation to lose or to gain.
Please don't write advantages of TeX and LaTeX or any pros and cons.
I hope to read about something like
* a drastic experience that led you to TeX,
* a beautiful book, paper or poster that changed your view dramatically,
* a first big success with a (La)TeX creation,
* a person who inspired you.
Anything in this spirit would be great. Please post just a single reason or event in each answer. If you further shared a similar experience that you read here, voting that up would be fine.
|
https://tex.stackexchange.com/users/213
|
Most significant reasons that led us to (La)TeX
| false |
I've written my bachelor thesis in Microsoft Word (version 2003, if memory serves), and that was excruciatingly painful experience. It's not that I was new to Word, or that I can't find my way around a computer program, but it frustrated me to no end.
Word has automatic TOC creation and formatting, but there are occasions that you want to make it *just right* --- for example, trimming a bit a long section title to fit on one row (which in LaTeX is trivial).
As far as figures went, it worked mostly okay, unless you try to keep a figure on a specific page and manually try to adjust it to fit. Even the slightest change in the text moved all the stuff around, and I had to double check almost all of the figures again and again. Numbering worked okay-ish, though.
References.. Don't even get me started on references --- I had to manually format them all (30+ entries), and that Gargantuan effort took probably a better part of a workday.
Fortunately, I had a good equation editor (not the Microsoft-supplied excuse of a such), and that made writing equations a breeze.
Code formatting and pretty-printing was another thing I struggled with --- I ended up taking screenshots of the Matlab code from the editor, and adding those in the appendix. My nerves were seriously shaken and I didn't want to get through the painful manual formatting again.
So, just a few days before I finished the thesis, I went to complain about my miserable existence to my math go-to guy, and he showed me one of the exams he prepared for his students --- he was doing some black magic in `vi` in a terminal, and he had some `Makefile`s for additional stuff like automatic generation of the problems and the solutions, uploading them automatically to the server, and preparing a sheet with names of all students in which the results are to be published later. All this with a click of a button. To my jaw-dropped mug he said "Oh, it's just LaTeX". And then he explained some of the basic stuff, and gave me a book to read. (Knuth's, of course). That's how it started.
As for a personal LaTeX pride --- my master thesis is prepared with LaTeX, and I used quite a lot of functionality outside basic LaTeX --- subfigures, listings, ams packages, page margins, headers and footers, BibTeX, customized hyperref, plus more. I even made a `.tex` template that resembled the one we had in `.doc` format for thesis work.
|
43
|
https://tex.stackexchange.com/users/711
|
2113
| 1,471 |
https://tex.stackexchange.com/questions/2047
|
54
|
The `etex` package provides an interface to e-TeX features. What advantages does it offer to LaTeX users?
Are there any possible disadvantages like incompatibility to any other package or can I just use it without worries?
|
https://tex.stackexchange.com/users/213
|
What are benefits of e-TeX for LaTeX users?
| false |
Looking at the e-TeX extensions in general, I'd highlight two points that have not been mentioned by others. First, e-TeX provides primitives for carrying out calculations when assigning integers, dimensions, *etc*. For example,
```
\newcount\mycount
\mycount\numexpr 1 + 2 * 3\relax
\showthe\mycount
```
will give `7`. Now, you can do something similar with the `calc` package, but only for LaTeX-managed variables. I find the e-TeX primitives particularly handy with [`Tikz`](http://ctan.org/pkg/pgf), as it uses TeX registers directly and so does not work with the `calc` package. e-TeX means that things like
```
\tikzset{ key-name = \dimexpr 3 * \SomeDimension\relax }
```
work nicely.
Secondly, and more 'conceptually', LaTeX users get the benefit from packages that use e-TeX primitives for the code; one I'd point to is [`biblatex`](http://ctan.org/pkg/biblatex). As a programmer, the e-TeX extensions make many things much easier, and also allow programming ideas that simply don't work with TeX82 (*i.e.* TeX written by Knuth). The direct influence of e-TeX may not show up to users, but the availability of packages certainly does.
|
25
|
https://tex.stackexchange.com/users/73
|
2114
| 1,472 |
https://tex.stackexchange.com/questions/2016
|
17
|
Tex has powerful support for extensions triggered by events happen in generating output, by running one of six token lists appropriately:
```
\everycr \everydisplay \everyhbox \everymath \everypar \everyvbox
```
They're used with effect in such places as Latex classes, but they are much less useful than they could be, because the `\everyfoo={\t\o ks}` assignment simply wipes the current value, making it rather tricky to use them by authors of packages and documents. Emacs' Elisp has a widely understood technology for registering and deregistering code to run at events, namely hooks.
The LaTeX3 Project's `expl3` library offers supports for managing token lists, and LuaTeX augments TeX's event handling mechanism with a set of Lua callbacks. Are these the beginning of proper support for event-driven TeX code, as usable as hooks? Is this a priority for developers on these projects?
|
https://tex.stackexchange.com/users/175
|
Will LaTeX3 have proper support for hooks? Does LuaTeX?
| false |
Expanding on the LaTeX3 side of things, I guess this is a place where I'd expect to provide a different input syntax to LaTeX2e. As the question points out, the current implementation uses the token register syntax
```
\everyfoo{tokens}
```
which overwrites whatever was in `\everyfoo` unless you do
```
\everyfoo\expandafter{\the\everyfoo tokens}
```
which is not exactly obvious. So a better approach would be something like the current `\AtBeginDocument`, something like:
```
\AtEveryFoo{tokens}
```
where this is additive. The implementation of such an approach would be easy enough.
**Proof of concept** A short piece of concept code that might be an approach for LaTeX3. The idea here is that the TeX primitive is only used by the kernel, with two separate hooks provided. First, settings that the kernel needs are applied, then ones from programmers and finally those from the user. In the demo I've only considered the `\everymath` concept. I've provided an interface for the user to both add to and clear the list, plus an alias to the LaTeX2e `\everymath` interface. (In a pure LaTeX3 approach I'd drop this TeX-like interface, or at least mark it depreciated.)
```
\documentclass{article}
\usepackage{xparse}
\ExplSyntaxOn
\makeatletter
\tl_new:N \l_every_math_programmers_tl
\tl_new:N \l_every_math_users_tl
\toks_set:Nn \tex_everymath:D {
\check@mathfonts % LaTeX2e's requirement
\tl_use:N \l_every_math_programmers_tl
\tl_use:N \l_every_math_users_tl
}
\NewDocumentCommand \InsertForEvery { m +m } {
\tl_put_right:cn { l_every_ #1 _users_tl } {#2}
}
\NewDocumentCommand \ClearForEvery { m } {
\tl_clear:c { l_every_ #1 _users_tl }
}
\RenewDocumentCommand \everymath { +m } { \InsertForEvery { math } {#1} }
\ExplSyntaxOff
\begin{document}
\InsertForEvery{math}{\mathrm{Look!\,}}
\( y = mx + c \)
\ClearForEvery{math}
\( y = mx + c \)
\end{document}
```
I should add that a real implementation would need error-checking and so on.
|
5
|
https://tex.stackexchange.com/users/73
|
2115
| 1,473 |
https://tex.stackexchange.com/questions/2110
|
77
|
**Looking back, what really convinced you to begin writing with TeX or LaTeX?**
This question is "community wiki", so there's no reputation to lose or to gain.
Please don't write advantages of TeX and LaTeX or any pros and cons.
I hope to read about something like
* a drastic experience that led you to TeX,
* a beautiful book, paper or poster that changed your view dramatically,
* a first big success with a (La)TeX creation,
* a person who inspired you.
Anything in this spirit would be great. Please post just a single reason or event in each answer. If you further shared a similar experience that you read here, voting that up would be fine.
|
https://tex.stackexchange.com/users/213
|
Most significant reasons that led us to (La)TeX
| false |
Powerpoint sucks. I couldn't in the best of my enthusiasm, complete a presentation with 20 sides filled with code and images. More than half the time would be spent in formatting it.
Then I came across beamer and wrote some custom commands in an hour and then created a presentation the way I wanted, with images in a folder, code in a folder and all the content mentioned in a file.
I am proud of very happy with this alternative, and the work I was able to do using it.
|
7
|
https://tex.stackexchange.com/users/906
|
2116
| 1,474 |
https://tex.stackexchange.com/questions/2110
|
77
|
**Looking back, what really convinced you to begin writing with TeX or LaTeX?**
This question is "community wiki", so there's no reputation to lose or to gain.
Please don't write advantages of TeX and LaTeX or any pros and cons.
I hope to read about something like
* a drastic experience that led you to TeX,
* a beautiful book, paper or poster that changed your view dramatically,
* a first big success with a (La)TeX creation,
* a person who inspired you.
Anything in this spirit would be great. Please post just a single reason or event in each answer. If you further shared a similar experience that you read here, voting that up would be fine.
|
https://tex.stackexchange.com/users/213
|
Most significant reasons that led us to (La)TeX
| false |
I was in college and my friend told me about this LaTeX thing. I was initially totally dismissive, "Why would anyone want to compile a document?" As a computer science student, I had spent more than enough time waiting for programs to compile and couldn't imagine doing the same for my documents.
I forget the specifics, but I believe we had a (modern) algebra assignment to write up. My friend did his in LaTeX. I wrote mine in some "normal" text editor. After comparing the output and the relative difficulty of producing beautiful mathematics, I was a convert.
|
11
|
https://tex.stackexchange.com/users/647
|
2118
| 1,475 |
https://tex.stackexchange.com/questions/2108
|
8
|
Sometimes it would be convenient to have several versions of a package installed at once. For example I’d like to have a development version of TikZ for my own work and the current stable version to test whether code I share works with it.
Is there a standard way to do this?
Edit: I’m using Linux and TL 2010.
|
https://tex.stackexchange.com/users/83
|
Installing several versions of a package
| true |
From `texmf/web2c/texmf.cnf`, "You can set an environment variable to override TEXMF if you're testing a new TeX tree, without changing anything else."
If you don't want a full TeX tree, you can use the `TEXMFHOME` environment variable to point that at something other than `~/texmf`. For example,
```
export TEXMFHOME=~/texmf-testing
```
Then install the testing versions of packages in there.
|
3
|
https://tex.stackexchange.com/users/647
|
2119
| 1,476 |
https://tex.stackexchange.com/questions/2110
|
77
|
**Looking back, what really convinced you to begin writing with TeX or LaTeX?**
This question is "community wiki", so there's no reputation to lose or to gain.
Please don't write advantages of TeX and LaTeX or any pros and cons.
I hope to read about something like
* a drastic experience that led you to TeX,
* a beautiful book, paper or poster that changed your view dramatically,
* a first big success with a (La)TeX creation,
* a person who inspired you.
Anything in this spirit would be great. Please post just a single reason or event in each answer. If you further shared a similar experience that you read here, voting that up would be fine.
|
https://tex.stackexchange.com/users/213
|
Most significant reasons that led us to (La)TeX
| false |
I was an undergraduate at MIT in the early 1980s and used TeX ('78) for the first time to write my undergraduate thesis in Physics. I had been using something called [Scribe](http://en.wikipedia.org/wiki/Scribe_%28markup_language%29) in order to write essays and also played around with [troff](http://en.wikipedia.org/wiki/Troff). Both were very limited in their ability to typeset mathematical content -- although I recall writing an essay on group theory using Scribe.
During my time working as an undergraduate research assistant at the Laboratory for Nuclear Science, I saw people producing beautifully typeset preprints with lots of mathematical formulae. I asked around and found out that they had been produced using TeX (which at the time was TeX '78) and which was installed on only a handful of computers at MIT at the time. I was converted immediately and wrote my [1984 undergraduate thesis](http://dl.dropbox.com/u/5096148/jth.tex78) using TeX. That version does not compile any longer, but at some point I converted [it to LaTeX](http://www.maths.ed.ac.uk/~jmf/Research/PVBLICATIONS/jth.pdf).
In graduate school in Stony Brook, TeX '82 (as the new version was called then) was available and this is what I used to typeset letters, notes, papers, thesis,... I always used TeX (with an increasing collection of macros) instead of LaTeX, until some time in the 1990s when LaTeX2e came out and I was persuaded to change. I liked the way my PhD thesis looked and I especially liked the fact that the macros made the source very readable. Visually it was perhaps [not too striking](http://www.maths.ed.ac.uk/~jmf/Research/PVBLICATIONS/Thesis.pdf).
In summary, it was an aesthetic choice based on the need to typeset documents with a complicated structure and substantial mathematical content.
|
22
|
https://tex.stackexchange.com/users/18
|
2120
| 1,477 |
https://tex.stackexchange.com/questions/2117
|
11
|
[Someone](https://tex.meta.stackexchange.com/questions/389/promoting-tex-latex-and-friends/395#395) mentioned a TUG meeting in UK, so I though we can try to keep something of a calendar/dashboard for new and upcoming events. Probably no better way of promoting these to new members.
I suggest the following template:
* **What?** Event name, organizing entity
* **When?** Dates and/or times
* **Where?** Address, driving directions if necessary. A link would probably work fine as well.
* **Who?** Notable individuals/guests, or a profile of the expected audience (if applicable). Mention event fees payable by participants.
* **Why?** Topic/agenda of the meeting, if any.
This is community wiki, so feel free to step up and edit to your heart's content. A one-entry-per-event requirement is probably self-evident.
|
https://tex.stackexchange.com/users/711
|
LaTeX-related events
| false |
* **What?** [Autumn conference of DANTE e.V.](http://www.dante.de/events/mv43.html), the german TeX users group
* **When?** 25.9.2010 - 26.9.2010, additional meeting the evening before
* **Where?** University of Trier, Fachbereich II / Germanistik, Universitätsring 15, 54296 Trier. [How to get there](http://www.dante.de/events/mv43/Anreise.html).
* **Who?** Mainly members of DANTE e.V.
* **Why?** See [conference program](http://www.dante.de/events/mv43/Programm.html) in German.
[DANTE e.V.](http://www.dante.de) was founded 1989 in Heidelberg and supports TeX users in Germany. DANTE subsidizes the German CTAN server and hosts a German FAQ. There's a [DANTE edition](http://www.lob.de/?flag=dan) of TeX books.
|
1
|
https://tex.stackexchange.com/users/213
|
2121
| 1,478 |
https://tex.stackexchange.com/questions/1957
|
17
|
I'm investigating about possible strategies to get nice vectors, discarding bold fonts. To make it simple, I'm not very happy with traditional ways of writing vectors with arrows. Please compare `$\overrightarrow{OM}$`, `$\overrightarrow{M}$`, `$\vec{OM}$` and `$\vec{M}$`. My preference goes to the `$\vec{M}$` command which is not suited for longer names like `$\vec{OM}$` and I do not like `\overrightarrow`. I would be interested in possibles ways to overcome these problems. Thank you
|
https://tex.stackexchange.com/users/371
|
Strategies for nice vectors
| false |
Just be sure to use your own `newcommand` as a wrapper, so that you can then make any changes you like. I recently changed the textbook I wrote for my class from bold-face notation to over-arrow notation. (I did this because the students preferred it. If, this year, the students prefer bold-face, I can go back to that in a jiffy.)
|
5
|
https://tex.stackexchange.com/users/922
|
2123
| 1,480 |
https://tex.stackexchange.com/questions/2124
|
31
|
When I dived into Python, I went through the beginner's tutorials. Of course, these tutorials cover only the basics and present only a shallow exhibition of what I can do with Python.
Right now I'm going through [Getting to grips with LaTeX](http://www.andy-roberts.net/misc/latex/) by Andrew Roberts. After this, I will want to see a complete LaTeX reference. For Python, I can immediately go to <http://docs.python.org>, then I am presented with a host of comprehensive documents about the Python standard core.
Is there a similar site for the LaTeX core? Something that I can "keep under my pillow", like [The Python Standard Library](http://docs.python.org/release/2.6.5/library/index.html)? I want to be well-versed with the standard installation first (I have MikTeX) before I go out and use additional packages.
|
https://tex.stackexchange.com/users/791
|
Is there a comprehensive and complete LaTeX reference?
| false |
What I found most helpful when learning LaTeX was reading Knuth's TeXbook. It doesn't cover any LaTeX (of course), but you get a pretty deep understanding of why TeX behaves the way it does.
There are books like the LaTeX Companion which document various packages, but I find it easier to just look at the documentation for those packages that comes with my TeX distribution. (I have never used MiKTeX so I cannot comment on it.)
I should add that Lamport's book is not worth spending money on. It contains very little information that isn't in standard free tutorials like `lshort`.
|
11
|
https://tex.stackexchange.com/users/647
|
2125
| 1,481 |
https://tex.stackexchange.com/questions/2124
|
31
|
When I dived into Python, I went through the beginner's tutorials. Of course, these tutorials cover only the basics and present only a shallow exhibition of what I can do with Python.
Right now I'm going through [Getting to grips with LaTeX](http://www.andy-roberts.net/misc/latex/) by Andrew Roberts. After this, I will want to see a complete LaTeX reference. For Python, I can immediately go to <http://docs.python.org>, then I am presented with a host of comprehensive documents about the Python standard core.
Is there a similar site for the LaTeX core? Something that I can "keep under my pillow", like [The Python Standard Library](http://docs.python.org/release/2.6.5/library/index.html)? I want to be well-versed with the standard installation first (I have MikTeX) before I go out and use additional packages.
|
https://tex.stackexchange.com/users/791
|
Is there a comprehensive and complete LaTeX reference?
| false |
The short answer, as far as I know, is no. Perhaps there is some complete reference out there which I'm unaware of, but I've been looking for a while and have never found such a thing.
Beyond that, I would have to agree with TH's answer.
|
0
|
https://tex.stackexchange.com/users/125
|
2127
| 1,482 |
https://tex.stackexchange.com/questions/2124
|
31
|
When I dived into Python, I went through the beginner's tutorials. Of course, these tutorials cover only the basics and present only a shallow exhibition of what I can do with Python.
Right now I'm going through [Getting to grips with LaTeX](http://www.andy-roberts.net/misc/latex/) by Andrew Roberts. After this, I will want to see a complete LaTeX reference. For Python, I can immediately go to <http://docs.python.org>, then I am presented with a host of comprehensive documents about the Python standard core.
Is there a similar site for the LaTeX core? Something that I can "keep under my pillow", like [The Python Standard Library](http://docs.python.org/release/2.6.5/library/index.html)? I want to be well-versed with the standard installation first (I have MikTeX) before I go out and use additional packages.
|
https://tex.stackexchange.com/users/791
|
Is there a comprehensive and complete LaTeX reference?
| true |
Today LaTeX is more than just its core. I don't want to go without amsmath, inputenc, fontenc, babel, microtype, hyperref, natbib, graphicx and many more.
To learn just about the LaTeX kernel, Lamports book is not bad, it's good to read what the author said. It's his reference manual. Reading source2e.pdf provides further insights.
But the **LaTeX Companion** is really something you could keep under your pillow. It gives deep insights but also an overview to important packages for various subjects. For me it's the LaTeX encyclopedia, because it goes beyond the LaTeX kernel. The companion could be a good foundation and roadmap. I recommend it to you, because I think you prefer a good recommendation over just hearing there's none.
Current LaTeX distributions install a huge amount of documentation, you could access it by `texdoc` at the command prompt. For instance:
* `texdoc source2e` for the commented LaTeX source,
* `texdoc clsguide` for LaTeX2e for class and package writers,
* `texdoc koma` to get the KOMA-Script classes guide
and documentation to many hundred packages and classes, from small to big. What a book cannot provide, **texdoc** does for me.
|
26
|
https://tex.stackexchange.com/users/213
|
2128
| 1,483 |
https://tex.stackexchange.com/questions/2126
|
16
|
I've searched for this but haven't found a solution. Is it possible to have multiple signatures in a letter, one above the other?
|
https://tex.stackexchange.com/users/nan
|
Multiple signatures in a letter
| false |
At a point, where you place the signature, you could also use a [parbox](http://texblog.net/help/latex/parbox.html) or a [minipage environment](http://texblog.net/help/latex/ltx-267.html). So, replace `signature text` for example just by
```
\parbox{5cm}{signature one
signature two}
```
or
```
\parbox{5cm}{signature one\\signature two}
```
to get a two lines, even as argument to another command.
Another way would be to use a `tabular` environment to stack multiple signatures on top of each other.
|
9
|
https://tex.stackexchange.com/users/213
|
2129
| 1,484 |
https://tex.stackexchange.com/questions/2
|
11
|
>
> **Possible Duplicate:**
>
> [ToC numbering problem](https://tex.stackexchange.com/questions/13914/toc-numbering-problem)
>
>
>
My LaTeX document is acting strangely. Here is a simplified version of it:
```
\documentclass{article}
\begin{document}
\tableofcontents
\newpage
\addcontentsline{toc}{part}{A Part of My Document}
\include{includedfile}
\end{document}
```
And in `includedfile.tex`:
```
\section{My Section Title}
Quack.
```
Clearly, in the table of contents, the heading for the part should precede the one for the section, but it doesn't! What's wrong?
|
https://tex.stackexchange.com/users/9
|
Table of contents numbering is strange
| false |
The `\include` macro is intended for inputting chapters in long documents. Thus any file used with `\include` really should start
```
\chapter{Some-chapter}
```
It also automatically starts a new page (which will confuse the order of things with your `\addcontentlines` instruction, I think). What you want is `\input`. This simply places the contents of the subfile into the TeX source at the current location, with no additional stuff going on. If you replace `\include` with `\input` then all is well. (Note: I'm trying to 'flesh out' the answer given by Reid Priedhorsky here: the end result is of course the same.)
|
5
|
https://tex.stackexchange.com/users/73
|
2131
| 1,485 |
https://tex.stackexchange.com/questions/2132
|
84
|
I have a mathematical transformation that takes 16 parameters (grouped into 3+8+5) and would like to make a latex command for it, so that I can easily change the notation for it if the need arises.
As far as I know, both `\def` and `\newcommand` take a maximum of 9 arguments, is there any (recommended) way to extend this?
|
https://tex.stackexchange.com/users/422
|
How to define a command that takes more than 9 arguments
| false |
There's the `xargs` [package](http://ctan.org/pkg/xargs), and there's also some [black TeX magic](https://texfaq.org/FAQ-moren9). As for myself, being conditioned in Python, I prefer the key-value parameter syntax provided by `keyval`/`xkeyval` packages.
On an unrelated note, if I find myself needing more than 9 parameters, that usually means that my macro/def/code organization is not very good, and I'd try to improve that first. But of course, there are legitimate situations where 9 parameters are perfectly okay --- especially if you try to build a definition with a lot of knobs and tweaks.
|
36
|
https://tex.stackexchange.com/users/711
|
2133
| 1,486 |
https://tex.stackexchange.com/questions/2132
|
84
|
I have a mathematical transformation that takes 16 parameters (grouped into 3+8+5) and would like to make a latex command for it, so that I can easily change the notation for it if the need arises.
As far as I know, both `\def` and `\newcommand` take a maximum of 9 arguments, is there any (recommended) way to extend this?
|
https://tex.stackexchange.com/users/422
|
How to define a command that takes more than 9 arguments
| true |
You are going to have to parse the arguments some at a time and store them into temporary registers or macros. For example
```
\newcommand\foo[9]{%
\def\tempa{#1}%
\def\tempb{#2}%
\def\tempc{#3}%
\def\tempd{#4}%
\def\tempe{#5}%
\def\tempf{#6}%
\def\tempg{#7}%
\def\temph{#8}%
\def\tempi{#9}%
\foocontinued
}
\newcommand\foocontinued[7]{%
% Do whatever you want with your 9+7 arguments here.
}
```
|
61
|
https://tex.stackexchange.com/users/647
|
2134
| 1,487 |
https://tex.stackexchange.com/questions/2117
|
11
|
[Someone](https://tex.meta.stackexchange.com/questions/389/promoting-tex-latex-and-friends/395#395) mentioned a TUG meeting in UK, so I though we can try to keep something of a calendar/dashboard for new and upcoming events. Probably no better way of promoting these to new members.
I suggest the following template:
* **What?** Event name, organizing entity
* **When?** Dates and/or times
* **Where?** Address, driving directions if necessary. A link would probably work fine as well.
* **Who?** Notable individuals/guests, or a profile of the expected audience (if applicable). Mention event fees payable by participants.
* **Why?** Topic/agenda of the meeting, if any.
This is community wiki, so feel free to step up and edit to your heart's content. A one-entry-per-event requirement is probably self-evident.
|
https://tex.stackexchange.com/users/711
|
LaTeX-related events
| false |
DANTE is maintaining an online [calendar](http://texcalendar.dante.de/year.php) of TeX events, but it is little known and therefore not always up-to-date
|
2
|
https://tex.stackexchange.com/users/89
|
2135
| 1,488 |
https://tex.stackexchange.com/questions/2117
|
11
|
[Someone](https://tex.meta.stackexchange.com/questions/389/promoting-tex-latex-and-friends/395#395) mentioned a TUG meeting in UK, so I though we can try to keep something of a calendar/dashboard for new and upcoming events. Probably no better way of promoting these to new members.
I suggest the following template:
* **What?** Event name, organizing entity
* **When?** Dates and/or times
* **Where?** Address, driving directions if necessary. A link would probably work fine as well.
* **Who?** Notable individuals/guests, or a profile of the expected audience (if applicable). Mention event fees payable by participants.
* **Why?** Topic/agenda of the meeting, if any.
This is community wiki, so feel free to step up and edit to your heart's content. A one-entry-per-event requirement is probably self-evident.
|
https://tex.stackexchange.com/users/711
|
LaTeX-related events
| false |
* **What?** [4th international ConTeXt meeting](http://meeting.contextgarden.net/2010)
* **When?** 13.9.2010 - 18.9.2010, from Monday evening to Saturday afternoon. See the [online program](http://meeting.contextgarden.net/2010/programme.shtml) for details
* **Where?** [Brejlov](http://meeting.contextgarden.net/2010/location.shtml), Czech Republic (close to Prague)
* **Who?** ConTeXt users, developers and other interested people. Registration is still open, all-in fees are 300 Euro for LUG members.
* **Why?** The ConTeXt meetings started because typical TeX (EuroTeX, TUG) conferences are often expensive to attend, tend to focus on LaTeX, and are too formal for our taste.
|
3
|
https://tex.stackexchange.com/users/89
|
2136
| 1,489 |
https://tex.stackexchange.com/questions/2117
|
11
|
[Someone](https://tex.meta.stackexchange.com/questions/389/promoting-tex-latex-and-friends/395#395) mentioned a TUG meeting in UK, so I though we can try to keep something of a calendar/dashboard for new and upcoming events. Probably no better way of promoting these to new members.
I suggest the following template:
* **What?** Event name, organizing entity
* **When?** Dates and/or times
* **Where?** Address, driving directions if necessary. A link would probably work fine as well.
* **Who?** Notable individuals/guests, or a profile of the expected audience (if applicable). Mention event fees payable by participants.
* **Why?** Topic/agenda of the meeting, if any.
This is community wiki, so feel free to step up and edit to your heart's content. A one-entry-per-event requirement is probably self-evident.
|
https://tex.stackexchange.com/users/711
|
LaTeX-related events
| false |
The TeX Users Group maintains a calendar for TUG and EuroTeX conferences: <http://tug.org/meetings.html>
And TUGboat prints a calendar each issue: <http://tug.org/TUGboat/Articles/tb31-1/tb97calendar.pdf>
|
3
|
https://tex.stackexchange.com/users/179
|
2137
| 1,490 |
https://tex.stackexchange.com/questions/2110
|
77
|
**Looking back, what really convinced you to begin writing with TeX or LaTeX?**
This question is "community wiki", so there's no reputation to lose or to gain.
Please don't write advantages of TeX and LaTeX or any pros and cons.
I hope to read about something like
* a drastic experience that led you to TeX,
* a beautiful book, paper or poster that changed your view dramatically,
* a first big success with a (La)TeX creation,
* a person who inspired you.
Anything in this spirit would be great. Please post just a single reason or event in each answer. If you further shared a similar experience that you read here, voting that up would be fine.
|
https://tex.stackexchange.com/users/213
|
Most significant reasons that led us to (La)TeX
| false |
In 1993, I was drafted in the army (at that time, army service was still mandatory in the Netherlands). I was placed at a communications centre that ran 24/7. Being a communications centre, we had access to quite a lot of good PC hardware for that time. Also, typically nothing much happened, and so we installed the then brand-new [Slackware Linux](http://www.slackware.com/) distribution on a bunch of them, to toy with and study Unix system administration (as that was a lot safer than experimenting on the actual srv4 minicomputer we ran).
Slackware at the time came on 40 or so floppy disks, and about a quarter of them were marked 'TeX'. I remember thinking: if it is considered that important, it *must* be good ...
|
53
|
https://tex.stackexchange.com/users/89
|
2138
| 1,491 |
https://tex.stackexchange.com/questions/2117
|
11
|
[Someone](https://tex.meta.stackexchange.com/questions/389/promoting-tex-latex-and-friends/395#395) mentioned a TUG meeting in UK, so I though we can try to keep something of a calendar/dashboard for new and upcoming events. Probably no better way of promoting these to new members.
I suggest the following template:
* **What?** Event name, organizing entity
* **When?** Dates and/or times
* **Where?** Address, driving directions if necessary. A link would probably work fine as well.
* **Who?** Notable individuals/guests, or a profile of the expected audience (if applicable). Mention event fees payable by participants.
* **Why?** Topic/agenda of the meeting, if any.
This is community wiki, so feel free to step up and edit to your heart's content. A one-entry-per-event requirement is probably self-evident.
|
https://tex.stackexchange.com/users/711
|
LaTeX-related events
| false |
* **What?** [TeXperience 2010](http://pavel.striz.cz/texperience/), the annual Czechoslovak TeX User Group meeting.
* **When?** 16.9.2010-19.9.2010, from Thursday evening to Sunday afternoon.
* **Where?** [Brejlov](http://meeting.contextgarden.net/2010/location.shtml), Czech Republic (close to Prague)
* **Who?** Czech and Slovak TeX Users.
* **Why?** See the [online program](http://meeting.contextgarden.net/2010/programme.shtml) for details. Fees are 140 Euro all-in for LUG members, 160 otherwise.
This meeting overlaps partially with the 4th ConTeXt meeting, and is held at the same venue.
ConTeXt meeting participants can stay for TeXperience as well for an extra 40 Euro.
|
1
|
https://tex.stackexchange.com/users/89
|
2141
| 1,493 |
https://tex.stackexchange.com/questions/2124
|
31
|
When I dived into Python, I went through the beginner's tutorials. Of course, these tutorials cover only the basics and present only a shallow exhibition of what I can do with Python.
Right now I'm going through [Getting to grips with LaTeX](http://www.andy-roberts.net/misc/latex/) by Andrew Roberts. After this, I will want to see a complete LaTeX reference. For Python, I can immediately go to <http://docs.python.org>, then I am presented with a host of comprehensive documents about the Python standard core.
Is there a similar site for the LaTeX core? Something that I can "keep under my pillow", like [The Python Standard Library](http://docs.python.org/release/2.6.5/library/index.html)? I want to be well-versed with the standard installation first (I have MikTeX) before I go out and use additional packages.
|
https://tex.stackexchange.com/users/791
|
Is there a comprehensive and complete LaTeX reference?
| false |
I love the ability to view documents in info format with Emacs. So I highly appreciate Karl Berry's effort to produce one. See <http://svn.gna.org/viewcvs/latexrefman/trunk/>:
>
> This project is an attempt to write a reference manual for core LaTeX.
> It is unofficial and the LaTeX Project members have not reviewed it. -- README
>
>
>
It covers pretty much everything as far as core LaTeX is concerned.
Because it is written in texinfo, it produces pdf, dvi, html, txt, xml formats as well.
|
5
|
https://tex.stackexchange.com/users/337
|
2142
| 1,494 |
https://tex.stackexchange.com/questions/2110
|
77
|
**Looking back, what really convinced you to begin writing with TeX or LaTeX?**
This question is "community wiki", so there's no reputation to lose or to gain.
Please don't write advantages of TeX and LaTeX or any pros and cons.
I hope to read about something like
* a drastic experience that led you to TeX,
* a beautiful book, paper or poster that changed your view dramatically,
* a first big success with a (La)TeX creation,
* a person who inspired you.
Anything in this spirit would be great. Please post just a single reason or event in each answer. If you further shared a similar experience that you read here, voting that up would be fine.
|
https://tex.stackexchange.com/users/213
|
Most significant reasons that led us to (La)TeX
| false |
I like emacs and always want it to be able to fulfil my document preparation needs. LaTeX/TeX turns out to be the best solution. I make templates for most of the uninteresting documents and make them accessible through a key shortcut in emacs and thus I can produce documents no slower than people using word or the like.
**Emacs extension used in the screenshot:**
I have temporarily released minibuffer-choose.el at <http://paste.lisp.org/display/113728>. Most packages (org-mode included) when present choices to users use a message in the minibuffer (echo area to be precise) or a new buffer. This package actually uses the minibuffer so you get the experience of a real buffer and the convenience of the echo area. You can `TAB`, `Shift-TAB`, `C-n`, `C-p`, `C-s`, `C-r`, `M-n`, `M-p` or type directly the highlighted character to choose a choie. Example:
```
(let ((files (directory-files "/usr/local" t "[a-z]+")))
(minibuffer-choose "Choose: " files 'file-name-nondirectory nil 'alpha))
```
|
16
|
https://tex.stackexchange.com/users/337
|
2144
| 1,496 |
https://tex.stackexchange.com/questions/2145
|
12
|
I've produced a .tex file using the `pstricks` package for figures and the Times font (via the `mathptmx` package). When the arXiv compiles this to a .pdf file it doesn't seem to have the necessary fonts embedded. It seems that that iPad and some other devices don't have the times font available, so some characters are missing when viewing the arXiv PDF on an iPad.
Does anyone know if it is possible to get the arXiv to produce a PDF with embedded fonts. The problem seems to have to do with the fact that `pstricks` necessitates a `latex` -> `dvips` -> `ps2pdf` compilation instead of `pdflatex`.
I'm aware of solutions like using `pdftricks` or converting the figures to PDFs and then using `\includegraphics{...}`, but the former seems to require some hand tweaking and the latter is a bit more fuss if I want to edit something in the future.
Any ideas?
|
https://tex.stackexchange.com/users/926
|
getting the arXiv to produce a pdf with embedded fonts
| false |
Are you running `ps2pdf` like
```
ps2pdf -dCompatibilityLevel=1.4 -dPDFSETTINGS=/prepress foo.ps foo.pdf
```
That seems to work for me.
Edit: I don't actually know what level of control arXiv provides though, so maybe using those arguments isn't possible.
|
2
|
https://tex.stackexchange.com/users/647
|
2146
| 1,497 |
https://tex.stackexchange.com/questions/2110
|
77
|
**Looking back, what really convinced you to begin writing with TeX or LaTeX?**
This question is "community wiki", so there's no reputation to lose or to gain.
Please don't write advantages of TeX and LaTeX or any pros and cons.
I hope to read about something like
* a drastic experience that led you to TeX,
* a beautiful book, paper or poster that changed your view dramatically,
* a first big success with a (La)TeX creation,
* a person who inspired you.
Anything in this spirit would be great. Please post just a single reason or event in each answer. If you further shared a similar experience that you read here, voting that up would be fine.
|
https://tex.stackexchange.com/users/213
|
Most significant reasons that led us to (La)TeX
| false |
When I was starting to attend university, I was truly enlightened by LaTeX. This system really absolved me from my previous troubles: When I high school, I used to fiddle with Microsoft Word. All went well, but, naturally, one of my friends did not have the correct version of Microsoft Office to open my file. This was when I started to think that the WYSIWYG approach is doomed.
Nowadays, I do *not* use Microsoft Word or OpenOffice Writer. Instead, I fire up my favourite text editor (`vim` \*ducks\*) and type **anything** in LaTeX: Memos, letters, documentation, papers, presentations, you name it. Coupled with the version control tool `git`, I can browse through the history of my works with ease, all the while never having to fear that something is lost.
I am not sure whether *any* word processor, how advanced it may be, can give me this feeling of bliss when simply concentrating on **what** I want to write, not **how** it should look. To quote [Allin Cottrell](http://ricardo.ecn.wfu.edu/~cottrell/wp.html):
>
> One only has to imagine, say, Jane Austen wondering in what font to put the chapter headings of *Pride and Prejudice* to see how ridiculous the notion is. Jane Austen was a great writer; she was not a typesetter.
>
>
>
|
13
|
https://tex.stackexchange.com/users/870
|
2147
| 1,498 |
https://tex.stackexchange.com/questions/2092
|
78
|
Both are vector graphics (typically) and both can be imported painlessly into a pdflatex document (so let's say we ignore dvi for this question).
What are the advantages and disadvantages of each? What should I use?
|
https://tex.stackexchange.com/users/10
|
Which figure type to use: pdf or eps?
| false |
For really big bitmapped images, I've always converted to jpeg at the required quality, then I'd use 'jpeg2ps' which takes just the raw jpeg data and wraps it in a postscript wrapper. It's been a lifesaver for me on arXiv. You can then use 'eps2pdf' to get it the way you want it.
|
0
|
https://tex.stackexchange.com/users/nan
|
2148
| 1,499 |
https://tex.stackexchange.com/questions/2124
|
31
|
When I dived into Python, I went through the beginner's tutorials. Of course, these tutorials cover only the basics and present only a shallow exhibition of what I can do with Python.
Right now I'm going through [Getting to grips with LaTeX](http://www.andy-roberts.net/misc/latex/) by Andrew Roberts. After this, I will want to see a complete LaTeX reference. For Python, I can immediately go to <http://docs.python.org>, then I am presented with a host of comprehensive documents about the Python standard core.
Is there a similar site for the LaTeX core? Something that I can "keep under my pillow", like [The Python Standard Library](http://docs.python.org/release/2.6.5/library/index.html)? I want to be well-versed with the standard installation first (I have MikTeX) before I go out and use additional packages.
|
https://tex.stackexchange.com/users/791
|
Is there a comprehensive and complete LaTeX reference?
| false |
There is an unofficial reference which can be accessed (at least in TeX Live) with `texdoc latex2e`. For more in-depth information, you can use the source code documentation (`texdoc source2e`). Several special topics (the names are meant to be used with `texdoc`, too) are covered by the `usrguide` (switching from LaTeX 2.09), `clsguide` (writing packages and classes), `encguide` (8-bit font encodings), `fntguide` (8-bit font commands) and `classes` (standard classes). This should cover the basic LaTeX kernel. For other classes and packages, use the corresponding package manual (type `texdoc <PACKAGENAME>`).
I agree with the others in that the Companion is an invaluable source of information, but unfortunately it is a bit dated by now.
|
7
|
https://tex.stackexchange.com/users/345
|
2149
| 1,500 |
https://tex.stackexchange.com/questions/2099
|
698
|
I'm making all my diagrams in SVG format using Inkscape and then I export them to some other format (e.g. PDF, EPS or PNG). I wrote a short script that does this for me automatically, but I'd like to avoid this step, if possible --- sometimes the conversion from SVG converts the text labels into vectors, and that's annoying. Hence the question:
*Is there a way to include SVG diagrams directly without conversion to an intermediate format?*
Package suggestions, or instructions for specific LaTeX distribution are welcome. Tips and personal experience on which tools you have found to be working reliably would be also appreciated.
|
https://tex.stackexchange.com/users/711
|
How to include SVG diagrams in LaTeX?
| false |
There are several SVG → PDF converters available, e.g. [Apache Batik's rasterizer](http://xmlgraphics.apache.org/batik/tools/rasterizer.html).
|
11
|
https://tex.stackexchange.com/users/345
|
2150
| 1,501 |
https://tex.stackexchange.com/questions/2152
|
47
|
I would like to create a custom vector drawing in Inkscape and then use it many times in many tikz pictures.
Is it possible?
Should I use PDF or SVG or other output from Inkscape?
How to use external vector image in Tikz node?
How to define anchors / dimensions(bounding box)?
|
https://tex.stackexchange.com/users/69
|
Tikz: using external images as building blocks.
| true |
**PGF tools for working with external images:**
* use `\pgfdeclareimage` to make your external image known to pgf/TikZ
* use `\pgfuseimage{name}` to include the image into your document
* encapsulate the image by `\pgfbox` to be able to use it within a node
An advantage of this way is that each image will be included just once in a pdf document and may be reused several times, thus saving space.
Follow general recommendations about including pictures: prefer vector format like pdf.
**Code example:**
This small example builds a tree with nodes using external images. I've simple taken images from our site for this.
```
\documentclass{article}
\usepackage{tikz}
\pgfdeclareimage{gold}{gold}
\pgfdeclareimage{silver}{silver}
\pgfdeclareimage{bronze}{bronze}
\begin{document}
\begin{tikzpicture}[sibling distance=12em]
\node {\pgfbox[center,bottom]{\pgfuseimage{gold}}}
child {node {\pgfbox[center,top]{\pgfuseimage{silver}}}}
child {node {\pgfbox[center,top]{\pgfuseimage{bronze}}}};
\end{tikzpicture}
\end{document}
```
**Output:**
**Further explanation of the pgf commands:**
* `\pgfdeclareimage[options]{image name}{file name}` declares an image without printing it. It understands `key=value` options like height, width, page, interpolate and mask. The usual formats are supported and their extensions would automatically be tried.
* `\pgfuseimage{image name}` simply outputs that image.
* `\pgfbox[horizontal alignment,vertical alignment]{content}` outputs the content aligned left, center or right respectively top, center, bottom or base.
Detailed syntax, options and examples could be found in the pgf user guide.
**The normal LaTeX approach:**
You could simply use `\includegraphics`, use it within `\pgftext`. The example modified in this sense:
```
\documentclass{article}
\usepackage{tikz}
\usepackage{graphicx}
\begin{document}
\begin{tikzpicture}[sibling distance=12em]
\node[anchor=south] {\pgftext{\includegraphics{gold}}}
child {node[anchor=north] {\pgftext{\includegraphics{silver}}}}
child {node[anchor=north] {\pgftext{\includegraphics{bronze}}}};
\end{tikzpicture}
\end{document}
```
**Choosing the right way:**
Using `\includegraphics` instead of pgf commands is recommended [here](http://stuff.mit.edu/afs/athena/contrib/tex-contrib/beamer/pgf-1.01/doc/generic/pgf/version-for-tex4ht/en/pgfmanualse27.html) because `\includegraphics` is a better implementation. The pgf way may be preferred if the document size matters and graphics are multiply used or if masking is desired.
|
65
|
https://tex.stackexchange.com/users/213
|
2153
| 1,502 |
https://tex.stackexchange.com/questions/1900
|
11
|
```
\tikzstyle{...}=[...]
```
This command seems to be extremely useful since it allows to re-use the same style in multiple TikZ pictures.
Is is used in a few places in TikZ manual (pgfmanual.pdf), but why it is not defined or described?
What are the other useful commands not described in TikZ manual?
|
https://tex.stackexchange.com/users/69
|
Undocumented useful commands in Tikz
| false |
From the [`beamer`](http://ctan.org/pkg/beamer) manual you can find that there is a macro called `\pgfdeclareimage` (Section 13, *Graphics*). This can be used to load a graphics file with a reusable name, to be applied using `\pgfuseimage`. This is obviously best for cases where the image is repeated in the output file (it only needs to be included once in the PDF, saving on file size). `\pgfdeclareimage` takes an optional argument for graphics settings, in the same way as `\includegraphics`.
|
8
|
https://tex.stackexchange.com/users/73
|
2154
| 1,503 |
https://tex.stackexchange.com/questions/2145
|
12
|
I've produced a .tex file using the `pstricks` package for figures and the Times font (via the `mathptmx` package). When the arXiv compiles this to a .pdf file it doesn't seem to have the necessary fonts embedded. It seems that that iPad and some other devices don't have the times font available, so some characters are missing when viewing the arXiv PDF on an iPad.
Does anyone know if it is possible to get the arXiv to produce a PDF with embedded fonts. The problem seems to have to do with the fact that `pstricks` necessitates a `latex` -> `dvips` -> `ps2pdf` compilation instead of `pdflatex`.
I'm aware of solutions like using `pdftricks` or converting the figures to PDFs and then using `\includegraphics{...}`, but the former seems to require some hand tweaking and the latter is a bit more fuss if I want to edit something in the future.
Any ideas?
|
https://tex.stackexchange.com/users/926
|
getting the arXiv to produce a pdf with embedded fonts
| false |
I think the simple answer is "you can't directly". The way that fonts are embedded (or not) in DVI mode depends on the settings used by `dvips`. You can't influence them from within your TeX source. Of course, you can e-mail the people who run arXiv and ask them to ensure that the base fonts are always downloaded. They might do it if you are lucky.
|
2
|
https://tex.stackexchange.com/users/73
|
2155
| 1,504 |
https://tex.stackexchange.com/questions/2151
|
5
|
I have several figures compiled independently into several pdf files.
Rubber works great in their compilation.
The main document is compiling great with rubber as well.
How can I add dependency (if figure pdf is outdated then recompile) into Rubber?
|
https://tex.stackexchange.com/users/69
|
Dependencies in Rubber?
| false |
I think you should be able to add something like this in your `rules.ini` file (I haven't tested this; read the manual and see the predefined examples in `rules.ini`):
```
[textopdf]
target = (.*)\.pdf
source = \1.tex
cost = 1
rule = shell
command = rubber -Wall $source
message = converting $source to PDF
```
This assumes that running `rubber -Wall figure1.tex` actually generates `figure1.pdf`.
Note that you don't need to manipulate the "global" `share/rubber/rules.ini` file; it should be possible to add a directive like `% rubber: rules myrules.ini` in your `main.tex`, and then put the above rule in `myrules.ini`. (Again, I haven't tested this.)
|
1
|
https://tex.stackexchange.com/users/100
|
2157
| 1,505 |
https://tex.stackexchange.com/questions/2145
|
12
|
I've produced a .tex file using the `pstricks` package for figures and the Times font (via the `mathptmx` package). When the arXiv compiles this to a .pdf file it doesn't seem to have the necessary fonts embedded. It seems that that iPad and some other devices don't have the times font available, so some characters are missing when viewing the arXiv PDF on an iPad.
Does anyone know if it is possible to get the arXiv to produce a PDF with embedded fonts. The problem seems to have to do with the fact that `pstricks` necessitates a `latex` -> `dvips` -> `ps2pdf` compilation instead of `pdflatex`.
I'm aware of solutions like using `pdftricks` or converting the figures to PDFs and then using `\includegraphics{...}`, but the former seems to require some hand tweaking and the latter is a bit more fuss if I want to edit something in the future.
Any ideas?
|
https://tex.stackexchange.com/users/926
|
getting the arXiv to produce a pdf with embedded fonts
| false |
[You can submit a file `00README.XXX`](http://arxiv.org/help/00README) containing a line
```
myfonts.map fontmap
```
which will cause the arXiv software to issue a `dvips` commandline including the option `-u+./myfonts.map`. If your file `myfonts.map` specifies embedding of all the fonts you use (the "base 35" should be enough), then you should be able to acheive your goal. I haven't tried this, however, so I'd be interested to know if it works.
|
6
|
https://tex.stackexchange.com/users/627
|
2158
| 1,506 |
https://tex.stackexchange.com/questions/2006
|
24
|
What viewers do you use for reviewing the beautifully-styled output of your LaTeX source?
List PDF, DVI and PostScript options.
Possibly, one entry per answer, and list platform availability, license conditions (open source vs. freeware/proprietary).
|
https://tex.stackexchange.com/users/711
|
Output viewers for use with LaTeX
| false |
PDF/PS
okular
* open source
* Linux/Unix
* automatic reload on file change -> perfect for pdflatex runs!
* great usability (e.g. automatic vertical mouse wrap around while scrolling)
* supports backward and forward sync with editor (at least if you use Kile)
* can also open `.dvi` and postscript files, with ghostscript backend
* consumes some memory to cache next page etc. (but memory usage can be configured depending on how greedy or parsimonious you want it to be)
DVI
xdvi
* some magnifying features via mouse available
|
2
|
https://tex.stackexchange.com/users/929
|
2159
| 1,507 |
https://tex.stackexchange.com/questions/2156
|
9
|
I am using the [`quotchap`](http://ctan.org/pkg/quotchap) package to format chapter headings in a document. Is it possible to change the default font size for the chapter headings? For example, in the `document.tex` file at the above URL, what would need to be changed to make the title smaller?
I could of course just use
```
\chapter{\small Quote to be quoted}
```
but this messes up things like tables of contents and running headers, and the font size applies to those too.
Thanks for any help!
|
https://tex.stackexchange.com/users/931
|
Changing the chapter heading size in quotchap
| true |
`quotchap` uses this command to specify the size of the chapter heading:
```
\let\size@chapter\huge
```
In your document, after loading `quotchap`, you could to the same but with another font size command, for instance:
```
\makeatletter
\let\size@chapter\small
\makeatother
```
You have to write `\makeatletter` ... `\makeatother` around the command to be able to use the `@` sign in the command name.
If you would like to adjust more than just the size: `quotchap` calls a macro `\sectfont` that may be redefined to switch to a certain font family, shape or weight. For instance, regarding Levs answer concerning a condensed version, using condensed Helvetica could be done by
```
\usepackage{helvet}% if desired
\renewcommand*{\sectfont}{\sffamily\fontseries{mc}\selectfont}
```
`\sectfont` is used automatically for all `quotchap` chapter headings.
|
9
|
https://tex.stackexchange.com/users/213
|
2161
| 1,508 |
https://tex.stackexchange.com/questions/2160
|
24
|
How do I make theorems and equations share numbering? The default numbering system goes like this:
>
> Theorem 1. Blah blah blah...
>
>
> 1=0+1 (1)
>
>
> Theorem 2. More blahs...
>
>
> Theorem 3. No more blahs...
>
>
> 2=1+1 (2)
>
>
>
The numbers in the parenthesis are equation numbers. How do you change the above into this:
>
> Theorem 1. Blah blah blah...
>
>
> 1=0+1 (2)
>
>
> Theorem 3. More blahs...
>
>
> Theorem 4. No more blahs...
>
>
> 2=1+1 (5)
>
>
>
I am using ntheorem package, but couldn't figure out how. Would I need to use a different package?
|
https://tex.stackexchange.com/users/1000
|
How to Make Theorems and Equations Share Numbering
| true |
You just need to tell it to number your theorems using the equation counter.
```
\newtheorem{thm}[equation]{Theorem}
```
Now `\begin{thm}` will be numbered the same as `\begin{equation}`.
|
32
|
https://tex.stackexchange.com/users/647
|
2162
| 1,509 |
https://tex.stackexchange.com/questions/2160
|
24
|
How do I make theorems and equations share numbering? The default numbering system goes like this:
>
> Theorem 1. Blah blah blah...
>
>
> 1=0+1 (1)
>
>
> Theorem 2. More blahs...
>
>
> Theorem 3. No more blahs...
>
>
> 2=1+1 (2)
>
>
>
The numbers in the parenthesis are equation numbers. How do you change the above into this:
>
> Theorem 1. Blah blah blah...
>
>
> 1=0+1 (2)
>
>
> Theorem 3. More blahs...
>
>
> Theorem 4. No more blahs...
>
>
> 2=1+1 (5)
>
>
>
I am using ntheorem package, but couldn't figure out how. Would I need to use a different package?
|
https://tex.stackexchange.com/users/1000
|
How to Make Theorems and Equations Share Numbering
| false |
See the [amsthm documentation](ftp://ftp.ams.org/pub/tex/doc/amscls/amsthdoc.pdf). It is only a few pages long and includes a discussion of this point (as well as lots of others relating to theorem styles).
|
4
|
https://tex.stackexchange.com/users/76
|
2164
| 1,510 |
https://tex.stackexchange.com/questions/2163
|
14
|
In his answer to the question [Tikz: using external images as building blocks.](https://tex.stackexchange.com/questions/2152/tikz-using-external-images-as-building-blocks) Stefan Kottwitz says:
>
> The pgf way may be preferred if the document size matters and graphics are multiply used or if masking is desired.
>
>
>
When is there a problem regarding large document size caused be multiple inclusions of the same image? With a random photo in jpg-format I get the results below using the following test-files:
```
\documentclass{article}
\usepackage{graphicx}
\pagestyle{empty}
\begin{document}
\newcount\n
\n=0
\loop\ifnum\n<100 \advance\n by1
\includegraphics[width=5cm]{IMG_1823.JPG}
\newpage
\repeat
\end{document}
```
and
```
\documentclass{article}
\usepackage{pgf}
\pgfdeclareimage[width=5cm]{test}{IMG_1823.JPG}
\pagestyle{empty}
\begin{document}
\newcount\n
\n=0
\loop\ifnum\n<100 \advance\n by1
\pgfuseimage{test}
\newpage
\repeat
\end{document}
```
Compiling with pdfTeX-1.40.10 the resulting document sizes are (output from pdfinfo):
```
pgf-version:
File size: 1673589 bytes
Graphicx-version:
File size: 1667806 bytes
```
The photo is about 1.6 Mb:
```
$ du IMG_1823.JPG
1592 IMG_1823.JPG
```
Adding `\pdfcompresslevel=0` and inspecting the contents of the pdf-file directly both methods seem (as far as I can tell) to embed the image data once only?
|
https://tex.stackexchange.com/users/565
|
Resulting document size when Including a graphics file multiple times - pgf vs. graphicx
| true |
The FAQ [says](https://texfaq.org/FAQ-repeatgrf) that repeated graphics are only a problem if you are producing PostScript as the final format. Distillation of the PostScript to PDF (by ghostscript or Distiller) will consolidate the figures, as will direct production of PDF via pdftex.
In the case that small PostScript files *are* the desired outcome, the FAQ offers several techniques (of varying sneakiness) to ensure that multiply-included graphics are only inserted once.
|
10
|
https://tex.stackexchange.com/users/627
|
2165
| 1,511 |
https://tex.stackexchange.com/questions/2156
|
9
|
I am using the [`quotchap`](http://ctan.org/pkg/quotchap) package to format chapter headings in a document. Is it possible to change the default font size for the chapter headings? For example, in the `document.tex` file at the above URL, what would need to be changed to make the title smaller?
I could of course just use
```
\chapter{\small Quote to be quoted}
```
but this messes up things like tables of contents and running headers, and the font size applies to those too.
Thanks for any help!
|
https://tex.stackexchange.com/users/931
|
Changing the chapter heading size in quotchap
| false |
Stefan's answer is direct and as always absolutely spot on. Of course, if you do decide to change `quotchap`'s heading size, you might now want to alter the "aesthetics" of the whitespace on the page, relocating the heading placement up or down. If so, then try this, experimenting with the numbers as you go...
```
\usepackage{quotchap}
\renewcommand*{\chapterheadstartvskip}{\vspace*{-0.5\baselineskip}} % quotchap default is 2.3; some negative amount will place you at the very top of the page
\renewcommand*{\chapterheadendvskip}{\vspace{1.3\baselineskip}} % quotchap default is 1.7
```
Just for fun, here's some code to change the volume of whitespace around `quotchap` chapter headers in *non*-`mainmatter` parts of your document (`\frontmatter`, `\appendix`, `\backmatter`)...
```
\usepackage{quotchap}
\makeatletter
\let\oldchapterheadstartvskip\chapterheadstartvskip
\renewcommand*\chapterheadstartvskip{
\if@mainmatter
\oldchapterheadstartvskip
\else
\vspace*{0\baselineskip}
\fi
}
\let\oldchapterheadendvskip\chapterheadendvskip
\renewcommand*\chapterheadendvskip{
\if@mainmatter
\oldchapterheadendvskip
\else
\vspace*{1.5\baselineskip}
\fi
}
\makeatother
```
Happy TeXing, astrofrog!
|
3
|
https://tex.stackexchange.com/users/416
|
2166
| 1,512 |
https://tex.stackexchange.com/questions/2156
|
9
|
I am using the [`quotchap`](http://ctan.org/pkg/quotchap) package to format chapter headings in a document. Is it possible to change the default font size for the chapter headings? For example, in the `document.tex` file at the above URL, what would need to be changed to make the title smaller?
I could of course just use
```
\chapter{\small Quote to be quoted}
```
but this messes up things like tables of contents and running headers, and the font size applies to those too.
Thanks for any help!
|
https://tex.stackexchange.com/users/931
|
Changing the chapter heading size in quotchap
| false |
Stefan already answered how to set the default size, but I'll point out that you can use `\chapter{\small Quote to be quoted}` in a way which doesn't mess up the running headings and the table of contents. The `\chapter` command has an optional argument, which is used for the Table of Contents and running headings, so you could use:
```
\chapter[Quote to be quoted]{\small Quote to be quoted}
```
or, as I've sometimes done when my documentclass uses a font that comes in both regular and condensed versions (eg, Helvetica) as the chapter typeface: for a problematic chapter with a long title, I've switched to the condensed version for that chapter only:
```
\chapter[Shorter version of long title]%
{\fontseries{mc}\selectfont Very very long title}
```
This is not great, because breaks the consistency of the document design, but only in a fairly subtle way, and sometimes it is the lesser evil.
|
4
|
https://tex.stackexchange.com/users/627
|
2167
| 1,513 |
https://tex.stackexchange.com/questions/605
|
24
|
I keep hearing people on this site talking about "semantic" vs "syntactic" commands and that the "semantic" ones are somehow better. I don't really get what they are talking about, could you explain and give some examples that show the difference.
Should I care about this at all?
|
https://tex.stackexchange.com/users/169
|
What is the deal about these semantic vs syntactic commands?
| false |
Consider `hello!`, `bon jour!` `sup!`. Natural and computer language taxonomy makes (amongst others) these distinctions:
* *lexical* : each occupies a different place in any lexical ordering (e.g., a dictionary)
* *syntactic* : most grammars (or 'production rules') parsing these terms would differ in the sense that two of the three would swallow two tokens (don't forget the `!`), while the other would consume three. To clarify, syntax (or grammar) is the set of rules governing how and where terms can legitimately stand in relationship to one another in a valid program
* *semantic* : the three utterances broadly *intend* or *mean* the same thing
* *pragmatic* : while the producers of these lexically, syntactically and semantically valid utterances all intend to convey a greeting, the context, place or pattern of their usage will determine their "efficiency" (not just in the program, but also within the community of producers, consumers and cultural guardians of the patterns).
Of course, this taxonomy applies as equally to TeX/LaTeX as any other language that might or might not exist (swap the word *phonemic* for *lexical* in purely spoken lingua if you like).
|
1
|
https://tex.stackexchange.com/users/416
|
2168
| 1,514 |
https://tex.stackexchange.com/questions/2145
|
12
|
I've produced a .tex file using the `pstricks` package for figures and the Times font (via the `mathptmx` package). When the arXiv compiles this to a .pdf file it doesn't seem to have the necessary fonts embedded. It seems that that iPad and some other devices don't have the times font available, so some characters are missing when viewing the arXiv PDF on an iPad.
Does anyone know if it is possible to get the arXiv to produce a PDF with embedded fonts. The problem seems to have to do with the fact that `pstricks` necessitates a `latex` -> `dvips` -> `ps2pdf` compilation instead of `pdflatex`.
I'm aware of solutions like using `pdftricks` or converting the figures to PDFs and then using `\includegraphics{...}`, but the former seems to require some hand tweaking and the latter is a bit more fuss if I want to edit something in the future.
Any ideas?
|
https://tex.stackexchange.com/users/926
|
getting the arXiv to produce a pdf with embedded fonts
| false |
I received this very nice explanation by email from Thorsten S.
>
> Asking arXiv admins with technical questions like this should always
> be your first choice. These should percolate up to the people that
> actually operate the TeX system at arXiv even if a little persistence
> may be necessary.
>
>
> Indeed, arXiv does not embed the base 35 fonts in dvips generated
> PostScript. If you are familiar with texlive arXiv's setting in
> `texmf/web2c/updmap.cfg` i
>
>
>
> ```
> dvipsDownloadBase35 false
>
> ```
>
> however (as mentioned in previous responses) due to repeated reports
> of problems with arXiv generated PDF from `pdflatex`, despite the
> standards requirement that every PDF or PostScript interpreter must
> have the base 35 fonts, arXiv does embed the base 35 fonts in `pdflatex`
> generated PDF. This is the setting
>
>
>
> ```
> pdftexDownloadBase14 true
>
> ```
>
> in `texmf/web2c/updmap.cfg`
>
>
> You say:
>
>
>
> >
> > It seems that that iPad and some other devices don't have the times font available
> >
> >
> >
>
>
> They should, so if this is indeed the case arXiv would love to see
> some examples and get to the bottom of this.
>
>
> The `dvips` fontmap advice above by Lev Bishop will work, however if
> there is a widespread problem arXiv should know about this.
>
>
> It is also possible to control most PDF parameters and options via
> literal PostScript from a `\special` command in you TeX source, e.g. you
> could specify the list of fonts to always embed like this
>
>
>
> ```
> <</AlwaysEmbed [/Helvetica /Times-Roman]>> setdistillerparams
>
> ```
>
> See
>
>
> <http://arxiv.org/help/faq/pdfrotate>
>
>
> for some more info on this. If this doesn't help, send email with
> details to arXiv for further advice.
>
>
> Hope this helps
>
> T. (yes, I do provide technical support for arXiv)
>
>
>
|
7
|
https://tex.stackexchange.com/users/926
|
2171
| 1,515 |
https://tex.stackexchange.com/questions/2170
|
4
|
When I used packages like Mathdesign and give commands like `\setrmdefault{cmr}` or something like this, what used to happen is the Text Font used to get lighter whereas the Math font used to be darker. Why does this happen, and how can I prevent this from happening?
|
https://tex.stackexchange.com/users/nan
|
Why is my text font lighter than my math font?
| true |
Chandru,
(First things first: we're all here to help. However, you can make things easier on everyone by paying attention to the way you present your questions. Please don't be put off, life is one big learning game! But also please think of the community before throwing improperly considered questions to the group - we've all got better things to do than to help those who are too lazy to first try hard themselves.)
Now to your question... frabjous essentially answered it when he asked why you had loaded `mathdesign` (presumably with one of the `utopia`, `garamond` or `charter` options), only afterwards to change your document's default Roman font to `Computer Modern`. Don't get me wrong, there is nothing wrong with this *per se*. I sometimes do things like this when wanting to pair another Roman typeface with the `mathdesign` math font set. Still, because they pair so poorly, it seems very *odd* to want to mix `CM` with `mathdesign`. `Computer Modern` is an exceptionally light font; as you point out, too light for `mathdesign`.
Now, why not use `garamond` or `charter` as your primary Roman font? The `mathdesign` package has been specifically tuned for them. If for some strange reason you can't and you really need to stick with `cmr`, then why not dispense with `mathdesign` and `\usepackage{amsfonts}` with `\usepackage{amssymb}`?
If that doesn't suit your requirements, and you really like the 'lightness' of `Computer Modern`, you might consider replacing the line where you write `\usepackage[...]{mathdesign}` with (1) `\usepackage{lmodern}` or (2) with `\usepackage[light]{kpfonts}`, that is, with (1) Latin Modern or (2) Kepler Project fonts using the `light` option. Both are downloadable from [CTAN](http://www.ctan.org/).
Now, if none of that makes sense, or if it doesn't provide the answer you wanted or expected, here's what you should do:
* as others have mentioned, post another question that more precisely describes your problem and the nature of what you want sorted out, *including a better title*;
* read up on LaTeX font selection commands
* *stop trying to pair `Computer Modern` with `mathdesign` math fonts!*
Anyway, Chandru, please don't be deterred. TeX/LaTeX is a powerful but confusing beast, the fun is learning how to climb that wall to tame it to your needs. We're here to help you, but show us that you've done your best to solve your own problems before hitting on us. In no time at all, you'll even be helping others! So, welcome to this board.
|
42
|
https://tex.stackexchange.com/users/416
|
2174
| 1,516 |
https://tex.stackexchange.com/questions/1333
|
9
|
Where can I find latex templates for project management tasks like work-breakdown structure doc, CPM/PERT diagrams, final project reports etc ?
Examples here:
[link1](https://docs.google.com/leaf?id=0B0NJuNGnNU9yNWRiNmIxMjctNzBmNi00ZTEzLWJlN2EtMGFkYWRmODZhZjU5&hl=en&authkey=CMzarrgH)
[link2](https://docs.google.com/leaf?id=0B0NJuNGnNU9yNjViMjNhZjQtMGVlNi00YWM2LWE2NTEtZTRiYTk1MjQ4NmZj&hl=en&authkey=CL-Uz_oO)
[link3](https://docs.google.com/leaf?id=0B0NJuNGnNU9yMzZlNjFhZDItZmZlOC00NTQ0LTkxMDItZmNjYjkxYmQ2NmVm&hl=en&authkey=CL-KmpYC)
[link4](https://docs.google.com/leaf?id=0B0NJuNGnNU9yYjY1NDAzNTktOWU3OS00OTAzLTkwNDgtZTk3ODA4ZjA1MDE3&hl=en&authkey=CLKUx6MJ)
[link5](https://docs.google.com/leaf?id=0B0NJuNGnNU9yZjE2OWVmZWEtOTUzZi00NzM5LWFkZTYtYTdkMmJlOTI4ZDk0&hl=en&authkey=CPWKvqoG)
|
https://tex.stackexchange.com/users/637
|
Latex templates for project management tasks
| false |
There is also [pst-gantt](http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-gantt/), which is based on pstricks. It is a bit older and more clunky though.
|
0
|
https://tex.stackexchange.com/users/870
|
2175
| 1,517 |
https://tex.stackexchange.com/questions/2172
|
2
|
How do I install missing style files with macports' tex install?
```
File `nag.sty' not found.
```
|
https://tex.stackexchange.com/users/512
|
macports tex install does not have nag.sty
| true |
If you are using `texlive` from the MacPorts, there is a packet manager `tlmgr` that allows you to install missing packages. If you are using something else, Joseph's comment points in the correct directions.
|
2
|
https://tex.stackexchange.com/users/870
|
2176
| 1,518 |
https://tex.stackexchange.com/questions/1313
|
13
|
I'm working on my resume in LyX and I would like my section headers to look like [this](http://rpi.edu/dept/arc/training/latex/resumes/res2.pdf). What should I write in the preamble to achieve this?
|
https://tex.stackexchange.com/users/5
|
Section headers in margins
| false |
Er, perhaps I'm a little slow these days (go easy, guys, I'm being rhetorical), but as far as I can tell from your example, what you've got there is a table. A `longtable` if you want to run things over one page.
(Or am I just being painfully dense?)
|
3
|
https://tex.stackexchange.com/users/416
|
2178
| 1,519 |
https://tex.stackexchange.com/questions/1756
|
189
|
I have heard a lot about `LaTeX`, but never used it myself.
It is mainly used for typesetting professional research papers. But I am not writing research papers.
Is `LaTeX` for me? If yes, why should I be shifting from `OpenOffice` to `LaTeX`? What does `LaTeX` offer to the normal user who uses word processing software to make all kind of report documents?
|
https://tex.stackexchange.com/users/813
|
Why should I use LaTeX?
| false |
I will echo Leo's point, about plain-text. Programmability and highest-quality are perks, but the fact that the input is plain-text has one extremely important consequence:
***You are not at the mercy of buggy word-processing software, proprietary or otherwise.***
I once used MS Word happily, as this was a substantial improvement over WordPerfect 5.1 for DOS, and contemporary office suites offered e.g. by Lotus. But whenever I tried to do anything modestly non-trivial, such as bullet points, it would begin to exhibit what could at best be charitably termed "eccentric" behaviour. Using Word to do anything more than a simple letter --- anything which involved a list, or controlling varying font sizes, or tables (especially tables!) --- involved for me a struggle against the software. And modern, well-meaning, open-source Office clones are even worse: in trying to reliably imitate Word's codependent behaviour, they have produced software with even more quirks against which I must fight.
With LaTeX, I can have documents which are as simple or as complicated as I like, with all of the mark-up and structure plainly visible to me, and with reliable results --- and I don't need anything more complicated than a text-editor to write the source-file to produce a high-quality PDF. Furthermore, *any* text-editor will do.
For this reason alone, LaTeX is excellent!
|
35
|
https://tex.stackexchange.com/users/911
|
2179
| 1,520 |
https://tex.stackexchange.com/questions/2177
|
10
|
I am using the `scrbook` class and I would like to achieve the following effect for my chapter headings:
```
####
#####
###
###
##### Name of chapter
```
How would I do this best? Is it possible to do this by simply changing the preamble?
|
https://tex.stackexchange.com/users/870
|
What's the right way to change display of chapter headings?
| false |
That looks like a job for the [fncychap](http://www.ctan.org/tex-archive/macros/latex/contrib/fncychap/) or [titlesec](http://www.ctan.org/tex-archive/macros/latex/contrib/titlesec/) packages.
|
4
|
https://tex.stackexchange.com/users/143
|
2181
| 1,521 |
https://tex.stackexchange.com/questions/2177
|
10
|
I am using the `scrbook` class and I would like to achieve the following effect for my chapter headings:
```
####
#####
###
###
##### Name of chapter
```
How would I do this best? Is it possible to do this by simply changing the preamble?
|
https://tex.stackexchange.com/users/870
|
What's the right way to change display of chapter headings?
| false |
...or the [quotchap](http://ctan.org/pkg/quotchap) package.
|
3
|
https://tex.stackexchange.com/users/85
|
2182
| 1,522 |
https://tex.stackexchange.com/questions/2177
|
10
|
I am using the `scrbook` class and I would like to achieve the following effect for my chapter headings:
```
####
#####
###
###
##### Name of chapter
```
How would I do this best? Is it possible to do this by simply changing the preamble?
|
https://tex.stackexchange.com/users/870
|
What's the right way to change display of chapter headings?
| true |
Three packages have been already mentioned. Since KOMA-Script classes provide a lot of sophisticated features, I usually aim not to lose them. Though packages usually work fine also with KOMA classes, they might remove class features by redefining class commands. For instance, `quotchap` doesn't care about periods after chapter numbers, supported by KOMA options like `numbers=enddot` or the autoenddot mechanism.
So, my first question would be: how can I solve the problem using class features? Usually there's a good chance. In this case, I could redefine the macro `\chapterformat` which is responsible for printing the chapter number.
**Code example:**
```
\documentclass{scrbook}
\usepackage{lmodern}
\renewcommand*{\chapterformat}{%
\fontsize{80}{88}\selectfont\thechapter\autodot\enskip}
\begin{document}
\chapter{Name of chapter}
\end{document}
```
**Output:**
This way not only periods but also user defined chapter or sectioning fonts are still supported like done by
```
\setkomafont{sectioning}{\rmfamily\bfseries\color{Gray}}
```
**Choosing the right way:**
To sum up, I believe generally the right way would be
1. Figure out if it may be done using class features by consulting the documentation.
2. If not, look out for packages, for instance in the [titles and sectioning category](http://texcatalogue.ctan.org/bytopic.html#title) of the [TeX Catalogue Online](http://texcatalogue.ctan.org/index.html).
3. If neither a class feature nor a package could solve it, then consider to program it yourself. Check out the corresponding macros within the class source file, take them as a starting point, be careful to preserve their other features you don't wish to change.
|
16
|
https://tex.stackexchange.com/users/213
|
2183
| 1,523 |
https://tex.stackexchange.com/questions/162
|
55
|
Are there newsgroups, forums, FAQs, and other sites that provide quality information on TeX, LaTeX and friends? Are all of these in English, or is there one in "my language of choice"?
|
https://tex.stackexchange.com/users/87
|
What are other good resources on-line for information about TeX, LaTeX and friends?
| false |
No one has talked about "Friends" so far :-)
For ConTeXt, the ConTeXt [wiki](http://www.contextgarden.net) is pretty useful
|
4
|
https://tex.stackexchange.com/users/323
|
2185
| 1,524 |
https://tex.stackexchange.com/questions/2184
|
14
|
After browsing through related threads, I am now of the understanding (please correct me if I am wrong) that the rule of thumb is to use the `\bigl`,`\bigr` pair with brackets, parentheses, etc. for operators like sums, products, and integrals, and `\left`,`\right` in all other cases.
I only recently found out about `\middle` , which has solved what had been a vexing problem for me: delimiters for function arguments (slashes, bars) not scaling properly. Leafing through my cheatsheet has not been of much help, so I wish to ask: is there an equivalent of `\middle` for `\bigl` and `\bigr`, or would the use of `\middle` along with that pair not be gauche?
|
https://tex.stackexchange.com/users/nan
|
Is there a command for large middle delimiters consistent with \bigl and \bigr?
| true |
\bigm, \Bigm, etc.
|
13
|
https://tex.stackexchange.com/users/323
|
2186
| 1,525 |
https://tex.stackexchange.com/questions/2140
|
11
|
Inside of a group, a command like `\tiny` has effect only until the group ends. One would like to be able to say `\global\tiny` to have it last after the group ends, but that does not work.
The best that I was able to come up with (described [here](http://texhacks.blogspot.com/2010/03/global-font-size-changes.html)) is the following.
```
\newif\ifhelper
\makeatletter
\def\unithelper#1\@nnil{\global\helpertrue\helper}
\def\helper{\ifhelper\afterassignment\helper\global\fi}
\newcommand*\globalfontsize[1]{%
\begingroup
#1%
\def\@defaultunits{\helperfalse\afterassignment\unithelper\global}%
\let\realvrule\vrule
\def\vrule{\helperfalse\global\helpertrue\afterassignment\helper\realvrule}%
\global\helpertrue
\helper#1%
\helperfalse
\endgroup}
\makeatother
```
Then you can say `\globalfontsize\tiny` or `\globalfontsize\normalsize` to achieve the desired effect. What is the right way to do that?
Edit: Several people have suggested some variant of `\documentclass[10pt]{article}`. That is not related to my question. I'm using "global" in analogy to the TeX primitive `\global`.
|
https://tex.stackexchange.com/users/647
|
What's the right way to globally change the font size?
| false |
For at least some font sizes, you can use something like `\documentclass[12pt]{article}`. However, I'm entirely sure which font sizes this works for---I do know it works for 10pt (the default) and 12pt.
|
0
|
https://tex.stackexchange.com/users/941
|
2187
| 1,526 |
https://tex.stackexchange.com/questions/1855
|
1
|
it is possible to switch the list of theorems between letters and numbers?
|
https://tex.stackexchange.com/users/nan
|
Theorem Ambient
| false |
There's an option to do this with the ntheorem package. I can't remeber the specific code, but the documentation includes an example of doing that.
If you don't want to use ntheorem, then here's what you should do: Suppose the (latex) count associated with your theorem is `theorem` (if you use amsthm, I'm pretty sure this will just be the name of your theorem environment, ie the `<text>` in `\begin{<text>}`). Then after defining said theorem environment (but before `\begin{document}`) insert the following:
`\renewcommand\thetheorem{\Alph{theorem}}`
for capital letters or
`\renewcommand\thetheorem{\alph{theorem}}`
for lowercase.
|
2
|
https://tex.stackexchange.com/users/941
|
2188
| 1,527 |
https://tex.stackexchange.com/questions/2180
|
8
|
**Problem Statement.** I am writing a large document that is too big to provide here for illustration. For the first hundred pages or so, the hyperlinks are correctly matched to the displayed text. For example, the text might refer to page 55, and the hyperlink would also direct the PDF viewer to that page. But then, at some point, the hyperlinks start pointing to incorrect pages, much earlier in the document. For example, a link might go to page 8, but the displayed text might refer correctly to page 80. (Throughout the document, the *displayed* references, e.g. page numbers or section numbers, remain correct. It is the hyperlinks that are broken at some point.)
**Question.** is there a way to debug documents that use the `hyperref` package, to find out why this sort of thing is happening?
|
https://tex.stackexchange.com/users/922
|
hyperref incorrect links: how to debug?
| true |
1. Clean Compile (delete all auxiliary files and do the latex-bibtex-latex-latex, etc dance from scratch)
2. Remove/turn-off as many packages as you can. Some packages may conflict with others
3. Reduce your document to the smallest sample showing the problem
4. Google =)
5. Grep \*.log files and run latex interractevly to see if there are problems.
ps. inserting pdfpages can mess-up page number orderring.
|
2
|
https://tex.stackexchange.com/users/137
|
2189
| 1,528 |
https://tex.stackexchange.com/questions/2140
|
11
|
Inside of a group, a command like `\tiny` has effect only until the group ends. One would like to be able to say `\global\tiny` to have it last after the group ends, but that does not work.
The best that I was able to come up with (described [here](http://texhacks.blogspot.com/2010/03/global-font-size-changes.html)) is the following.
```
\newif\ifhelper
\makeatletter
\def\unithelper#1\@nnil{\global\helpertrue\helper}
\def\helper{\ifhelper\afterassignment\helper\global\fi}
\newcommand*\globalfontsize[1]{%
\begingroup
#1%
\def\@defaultunits{\helperfalse\afterassignment\unithelper\global}%
\let\realvrule\vrule
\def\vrule{\helperfalse\global\helpertrue\afterassignment\helper\realvrule}%
\global\helpertrue
\helper#1%
\helperfalse
\endgroup}
\makeatother
```
Then you can say `\globalfontsize\tiny` or `\globalfontsize\normalsize` to achieve the desired effect. What is the right way to do that?
Edit: Several people have suggested some variant of `\documentclass[10pt]{article}`. That is not related to my question. I'm using "global" in analogy to the TeX primitive `\global`.
|
https://tex.stackexchange.com/users/647
|
What's the right way to globally change the font size?
| true |
```
\newcommand{\doglobally}[1]{{\globaldefs=1#1}}
```
Now you can write `\doglobally\tiny`
|
10
|
https://tex.stackexchange.com/users/627
|
2190
| 1,529 |
https://tex.stackexchange.com/questions/2191
|
20
|
I recently installed Ubuntu 10.04 over-top of Ubuntu 9.04, preserving my /home partition, but aside from that partition, it was a fresh install. I installed the texlive package (2009-7) from Ubuntu's main repository.
Now, when I try to run latex or pdflatex on a `.tex` file, I get the not so helpful error:
```
brian@thoralf:~/tmp$ pdflatex test.tex
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)
restricted \write18 enabled.
---! /home/brian/.texmf-var/web2c/pdftex/pdflatex.fmt doesn't match pdftex.pool
(Fatal format file error; I'm stymied)
```
What can I do to fix this problem?
|
https://tex.stackexchange.com/users/93
|
TeX Live error on Ubuntu 10.04: pdflatex.fmt doesn't match pdftex.pool
| true |
[I asked, then search the net. I've made my answer community wiki so as not to look like I'm rep-hunting.]
There was a [bug filed](https://bugs.launchpad.net/ubuntu/+source/texlive-bin/+bug/543529) against ubuntu 10.04 beta. I'm somewhat surprised it's not been fixed as it makes latex rather useless.
One commentator on the bug thread said that deleting `/home/.texmf-var` worked for them. Worked for me, too.
|
19
|
https://tex.stackexchange.com/users/93
|
2192
| 1,530 |
https://tex.stackexchange.com/questions/2193
|
104
|
Is it possible to make a reference to the page where a figure is rendered?
I would like to write something like
```
see figure~\ref{figure-xyz} on page NN
```
where NN will automatically be maintained by LaTeX. The figure that prompted my question is almost a page so it may be floated further in the doc.
I suppose it's possible, after all the figure-to-page mapping is generated by `\listoffigures`.
|
https://tex.stackexchange.com/users/564
|
How to reference the page of a figure?
| false |
Just use `\pageref{}`, so in your case:
```
see figure \ref{figure-xyz} on page \pageref{figure-xyz}
```
|
34
|
https://tex.stackexchange.com/users/14
|
2194
| 1,531 |
https://tex.stackexchange.com/questions/2193
|
104
|
Is it possible to make a reference to the page where a figure is rendered?
I would like to write something like
```
see figure~\ref{figure-xyz} on page NN
```
where NN will automatically be maintained by LaTeX. The figure that prompted my question is almost a page so it may be floated further in the doc.
I suppose it's possible, after all the figure-to-page mapping is generated by `\listoffigures`.
|
https://tex.stackexchange.com/users/564
|
How to reference the page of a figure?
| true |
```
see figure~\ref{figure-xyz} on page~\pageref{figure-xyz}
```
Also see the [`varioref`](http://ctan.org/pkg/varioref) package which lets you write `see figure~\vref{figure-xyz}` which will automatically add the "on page NN" iff the figure is not on the current page.
|
142
|
https://tex.stackexchange.com/users/627
|
2195
| 1,532 |
https://tex.stackexchange.com/questions/2196
|
25
|
I'm using [`setspace`](http://ctan.org/pkg/setspace) to double-space an article (as it's widely known, this package behaves more intelligently than `\linespread`, [Double line spacing](https://tex.stackexchange.com/questions/819/double-line-spacing) alread covers the details).
```
\usepackage{setspace}
\doublespacing
```
However, I'd like to finely adjust the "double" spacing so I can control the overall length of the paper. If I use `\linespread`, I go back to the less intelligent mechanism. Is there a way to fine tune what the `setspace` package does?
My question is specific to the `article` and, perhaps, `report` document classes. I'm saying this because some googling found some [tricks](http://greengabbro.net/2009/02/15/line-spacing-with-the-latex-memoir-class-why-doesnt-setspacesty-work/) specific to the `memoir` class.
|
https://tex.stackexchange.com/users/564
|
Finely control line spacing when already using the setspace package?
| true |
In addition to the familiar `\onehalfspacing` (etc.) commands and `\begin{onehalfspace}...\end{onehalfspace}` (etc.) environments, the `setspace` package includes a `\setstretch{baselinestretch}` command that can help you out, or a `\begin{spacing}{nnn}...\end{spacing}` environment. Set the spacing factor number, `nnn` to, say, `1.85` or whatever your situation needs. See the documentation in the comments in `setspace.sty` for more details.
|
24
|
https://tex.stackexchange.com/users/416
|
2199
| 1,533 |
https://tex.stackexchange.com/questions/1863
|
249
|
The `hyperref` documentation says: "Make sure it comes last of your loaded packages". The reason is that it redefines many LaTeX commands. It's a rule of thumb that helps to avoid errors.
However, there are exceptions, for instance the `amsrefs` user's guide notes that `amsrefs` has to be loaded *after* `hyperref`.
To avoid problems when adding hypertext functionality: do you know further such exceptions?
|
https://tex.stackexchange.com/users/213
|
Which packages should be loaded after hyperref instead of before?
| false |
One more is
* [`hypernat`](https://www.ctan.org/pkg/hypernat)
To quote its README:
>
> Allows `hyperref` package and the natbib package with options `numbers` and `sort&compress` to work together. This means that multiple sequential citations (e.g [3,2,1]) will be compressed to [1-3], where the '1' and the '3' are (color-)linked to the bibliography.
>
>
>
|
9
|
https://tex.stackexchange.com/users/422
|
2200
| 1,534 |
https://tex.stackexchange.com/questions/2110
|
77
|
**Looking back, what really convinced you to begin writing with TeX or LaTeX?**
This question is "community wiki", so there's no reputation to lose or to gain.
Please don't write advantages of TeX and LaTeX or any pros and cons.
I hope to read about something like
* a drastic experience that led you to TeX,
* a beautiful book, paper or poster that changed your view dramatically,
* a first big success with a (La)TeX creation,
* a person who inspired you.
Anything in this spirit would be great. Please post just a single reason or event in each answer. If you further shared a similar experience that you read here, voting that up would be fine.
|
https://tex.stackexchange.com/users/213
|
Most significant reasons that led us to (La)TeX
| false |
I was re-writing the documentation to our software ([check out the LaTeX versions here](http://www.trms.com/support/documentation)). I like to write using lots of figure examples. I also like to write lots of cross-references. The trouble was, Word was an absolute train wreck. If I modified anything mid-document, all of my figures would end up pilled up at the bottom. My cross-references needed constant and manual updating... it just was not working.
I was in the middle of this nightmare when I was playing poker with some friends. I said something like, "I %^&\*in' hate Word for what I'm doing. I wish there was something out there that was made for this."
Two of my poker buddies (both nerds) said, at the same time, "LaTeX!" They described it to me and I could not concentrate from then on. I was absolutely obsessed with finding out more.
I did and the rest, as they say, is history. I wrote my first manual ([The Cablecast Guide](http://www.trms.com.s3.amazonaws.com/assets/support/manuals/cablecast/Cablecast42Guide.pdf)) and have slowly built up quite a robust set of macros that define the style and common tools for everything from our documentation to our pricing guides.
It's been about 4 years with this work flow and I find myself, very often, looking for something better. LaTeX has its oddities. The drill is, I'll hear about something (Prince, DocBook) and then I think to myself, "This is it! The end of LaTeX! Now I can finally be rid of Longtable!"
This never pans out, however. 30+ years of LaTeX has lead to some pretty fantastic capabilities and indispensable packages (Datatool, TikZ).
|
10
|
https://tex.stackexchange.com/users/659
|
2201
| 1,535 |
https://tex.stackexchange.com/questions/2198
|
101
|
I feel that PDF documents when intended to be uploaded on the Internet should be of minimal final size in bytes. Many strategies exist to create such small documents:
1. Pay attention to the size of the embedded raster images.
2. Create diagrams with `tikz` or `pstricks` and avoid external applications that can create unwanted big files. Using `tikz` or `pstricks` provides access to an almost unlimited control of the properties of a specific object. For instance, creating a point A of coordinates (1,1) should be preferred to a point A of coordinates (1.0000000,1.00000000), that you cannot control in many applications.
3. Pay attention to the fonts used in your documents. Some fonts contain a coding for a single size and are then scaled, when used in titles or equivalents. Some other fonts contain a coding for different size, making the document a bit larger. You may observe a non negligible difference.
I am interested in this 3rd point: have some of you investigated the best fonts for smaller PDF files?
**Edit** [Compress.SmallPDF](http://compress.smallpdf.com/) sounds like a good online solution to efficiently compress pdf files for free.
|
https://tex.stackexchange.com/users/371
|
How to create small PDF files for the Internet
| true |
There are a number of tricks for getting optimized pdfs. Many of them are implemented in the tool [pdfsizeopt](http://code.google.com/p/pdfsizeopt/). With some patches (posted in the pdfsizeopt bugtracker) this tool can run on all my tex-generated pdfs (and nearly all of the non-tex-generated ones). I use the commandline:
```
python ./pdfsizeopt.py --use-pngout=true --use-jbig2=true --use-multivalent=true --do-unify-fonts=false filetocompress.pdf
```
I use `--do-unify-fonts=false` even though it produces slightly larger pdfs, because of a bug where a few glyphs are not displayed with certain pdf viewers (windows adobe reader, for example).
There are indeed various things you can do during document production with tex, to make sure that the compressed pdf ends up as small as possible: several of these are discussed in the EuroTeX 2009 White paper about pdfsizeopt (available at <https://github.com/pts/pdfsizeopt/releases/download/docs-v1/pts_pdfsizeopt2009.psom.pdf>).
As regards fonts, pdfsizeopt will recode fonts to the very compressed CFF format, and take care of subsetting and duplication issues. I haven't investigated deeply, but in my tests it seems that of the 2 options for type 1 encoded T1 (multilingual) tex fonts, the Latin Modern fonts generally produce significantly larger PDFs than the CM-Super version (which is unfortunate, because Latin Modern is superior in just about every other way (see [this question](https://tex.stackexchange.com/questions/1390/latin-modern-vs-cm-super)). I just did a quick experiment and this difference in size seems to be only for the pre-pdfsizeopt pdfs: after pdfsizeopt, Latin Modern is the same or smaller than CM-Super.
Using fonts that don't have optical scaling will indeed produce a smaller PDF, but I don't recommend it because if you are using multiple sizes then the non-optically scaled fonts will look much worse.
|
78
|
https://tex.stackexchange.com/users/627
|
2202
| 1,536 |
https://tex.stackexchange.com/questions/2110
|
77
|
**Looking back, what really convinced you to begin writing with TeX or LaTeX?**
This question is "community wiki", so there's no reputation to lose or to gain.
Please don't write advantages of TeX and LaTeX or any pros and cons.
I hope to read about something like
* a drastic experience that led you to TeX,
* a beautiful book, paper or poster that changed your view dramatically,
* a first big success with a (La)TeX creation,
* a person who inspired you.
Anything in this spirit would be great. Please post just a single reason or event in each answer. If you further shared a similar experience that you read here, voting that up would be fine.
|
https://tex.stackexchange.com/users/213
|
Most significant reasons that led us to (La)TeX
| false |
I have seen the beautiful typography in a computer magazine. I was stunned by its beauty, it just looked like "printed".
|
5
|
https://tex.stackexchange.com/users/243
|
2205
| 1,538 |
https://tex.stackexchange.com/questions/2198
|
101
|
I feel that PDF documents when intended to be uploaded on the Internet should be of minimal final size in bytes. Many strategies exist to create such small documents:
1. Pay attention to the size of the embedded raster images.
2. Create diagrams with `tikz` or `pstricks` and avoid external applications that can create unwanted big files. Using `tikz` or `pstricks` provides access to an almost unlimited control of the properties of a specific object. For instance, creating a point A of coordinates (1,1) should be preferred to a point A of coordinates (1.0000000,1.00000000), that you cannot control in many applications.
3. Pay attention to the fonts used in your documents. Some fonts contain a coding for a single size and are then scaled, when used in titles or equivalents. Some other fonts contain a coding for different size, making the document a bit larger. You may observe a non negligible difference.
I am interested in this 3rd point: have some of you investigated the best fonts for smaller PDF files?
**Edit** [Compress.SmallPDF](http://compress.smallpdf.com/) sounds like a good online solution to efficiently compress pdf files for free.
|
https://tex.stackexchange.com/users/371
|
How to create small PDF files for the Internet
| false |
If for some reason you don't want to use pdfsizeopt: both XeTeX and LuaTeX typically generate smaller PDF files than pdfTeX because OpenType fonts are already encoded in either CFF or TrueType outlines.
|
27
|
https://tex.stackexchange.com/users/89
|
2206
| 1,539 |
https://tex.stackexchange.com/questions/2198
|
101
|
I feel that PDF documents when intended to be uploaded on the Internet should be of minimal final size in bytes. Many strategies exist to create such small documents:
1. Pay attention to the size of the embedded raster images.
2. Create diagrams with `tikz` or `pstricks` and avoid external applications that can create unwanted big files. Using `tikz` or `pstricks` provides access to an almost unlimited control of the properties of a specific object. For instance, creating a point A of coordinates (1,1) should be preferred to a point A of coordinates (1.0000000,1.00000000), that you cannot control in many applications.
3. Pay attention to the fonts used in your documents. Some fonts contain a coding for a single size and are then scaled, when used in titles or equivalents. Some other fonts contain a coding for different size, making the document a bit larger. You may observe a non negligible difference.
I am interested in this 3rd point: have some of you investigated the best fonts for smaller PDF files?
**Edit** [Compress.SmallPDF](http://compress.smallpdf.com/) sounds like a good online solution to efficiently compress pdf files for free.
|
https://tex.stackexchange.com/users/371
|
How to create small PDF files for the Internet
| false |
Using true type fonts that are specified in the PDF standard (and thus available with every conforming pdf viewer) dramatically reduces for me the file size of PDFs generated with pdflatex. Else, other fonts are included in the generated PDF which increases the file size.
For example via
```
\usepackage{mathptmx}
\usepackage[scaled=.95]{helvet}
\usepackage{courier}
```
The scaling of helvet is needed, because it is by default a bit larger.
Note that the package times is obsolete.
[Using common PostScript fonts with LaTeX](http://ctan.tug.org/tex-archive/macros/latex/required/psnfss/psnfss2e.pdf) describes these packages and more.
**Edit**
To get a list of fonts the [PDF standard 1.4 specifies](https://wwwimages2.adobe.com/content/dam/Adobe/en/devnet/pdf/pdfs/pdf_reference_archives/PDFReference.pdf) see section 2.2.3 (page 36) and section 5.5.1 (page 339). To quote:
```
These fonts, or their font metrics and suitable substitution fonts, are guaranteed
to be available to the viewer application.
```
Section 9.6.2.2 of the [PDF standard 1.7](http://www.adobe.com/devnet/acrobat/pdfs/PDF32000_2008.pdf) uses a slightly other wording:
```
[..]These fonts, or their font metrics and suitable substitution fonts, shall be available
to the conforming reader.
```
Thus for example, the acrobat reader on an (relatively) obscure Solaris system comes with some otf/pfb font files.
|
16
|
https://tex.stackexchange.com/users/929
|
2207
| 1,540 |
https://tex.stackexchange.com/questions/2197
|
13
|
I have a rectangle in TikZ and the top left and bottom right corners are called (topleft) and (bottomright) respectively. I wanted to have a label midway down the left hand side of the rectangle, so I tried the following, both of which failed with cryptic error messages:
```
\draw let \p1 = (topleft), \p2 = (bottomright)
in (\x1,\pgfmathparse{0.5*(\y1 + \y2)}\pgfmathresult) node[right]{6 metres};
```
and
```
\draw let \p1 = (topleft), \p2 = (bottomright)
in (\x1,{0.5*(\y1 + \y2)}) node[right]{6 metres};
```
I got the desired result in a roundabout way:
```
\draw let \p1 = (topleft), \p2 = (bottomright)
in ($(\x1,\y1)!.5!(\x1,\y2)$) node[right]{6 metres};
```
But why did the first two attempts not work?
EDIT (in response to request for more detail):
If it helps, you can assume that the context of the command above is something like:
```
\usetikzlibrary{calc}
\begin{tikzpicture}
\draw (0,10) coordinate (topleft) rectangle (6,0) coordinate (bottomright);
%% relevant let statement would go just below here
\end{tikzpicture}
```
but I do not want a solution that uses the knowledge that the coordinates are (0,10) and (6,0).
|
https://tex.stackexchange.com/users/136
|
Why is this let expression not working in TikZ (calculating a midpoint)?
| false |
Rather than doing "all that arithmetic", I'd let Tikz do it for me. Try something like this:
```
\begin{tikzpicture}[scale=1,>=stealth]
\draw(-10,0) node (topleft) {TL};
\draw(0,-10) node (bottomright) {BR};
\draw (topleft) rectangle (bottomright);
\path (topleft) edge node (here) {Here} (topleft |- bottomright);
\end{tikzpicture}
```
The two secrets are these: node will draw at the midpoint of a path, and |- (or -|) represents a vertical/horizontal point of intersection (ie, in the example, "drop a line vertically from (topleft) until it meets a horizontal line through (bottomright). Try swapping -| for |- and you'll see what I'm getting at.
---
You can also refine things, like this:
```
\path (topleft) edge[draw opacity=0]
node [right,pos=0.25] (here) {Here}
(topleft |- bottomright);`
```
`draw opacity=0` suppresses the line that \path normally draws
`right` places the text to the right
`pos=0.25` places the node 1/4 of the way along the path (and so on), saving your arithmetic for better things...
|
11
|
https://tex.stackexchange.com/users/344
|
2208
| 1,541 |
https://tex.stackexchange.com/questions/2209
|
24
|
I know that it is possible to include `somedir/subdir/anotherfile.tex` in `somedir/file.tex` by using `\include{subdir/file}`. Is it possible to do it the other way around?
A Linux workaround that I'm aware of is a symbolic link of `somedir/file.tex` to `somedir/subdir/file.tex`.
|
https://tex.stackexchange.com/users/945
|
(How) can I include the file somedir/file.tex in the file somedir/subdir/anotherfile.tex
| true |
Use `\include{../file}`.
`..` is UNIX for the parent directory, which Tex uses. See [Kpathsea: Path searching](http://www.chemie.fu-berlin.de/chemnet/use/info/kpathsea/kpathsea_4.html).
**Postscript**
Lev Bishop notes that this won't allow you to write to the parent directory, and that `\include` typically wants to write to a `*.aux` file in the parent directory. You can workaround the absence of write permission by setting TEXMFOUTPUT: on a Unix system, `env TEXMFOUTPUT=.. latex mydoc` will allow Latex to write (and overwrite) any file in the parent directory or any of its subdirectories when it compiles `mydoc.tex`.
This is somewhat safer than allowing overwriting everywhere the Tex binary has permission, and should work with Pdftex on both Texlive and Miktex (I'm not sure if TEXMFOUT is supported by Xetex).
|
19
|
https://tex.stackexchange.com/users/175
|
2210
| 1,542 |
https://tex.stackexchange.com/questions/2197
|
13
|
I have a rectangle in TikZ and the top left and bottom right corners are called (topleft) and (bottomright) respectively. I wanted to have a label midway down the left hand side of the rectangle, so I tried the following, both of which failed with cryptic error messages:
```
\draw let \p1 = (topleft), \p2 = (bottomright)
in (\x1,\pgfmathparse{0.5*(\y1 + \y2)}\pgfmathresult) node[right]{6 metres};
```
and
```
\draw let \p1 = (topleft), \p2 = (bottomright)
in (\x1,{0.5*(\y1 + \y2)}) node[right]{6 metres};
```
I got the desired result in a roundabout way:
```
\draw let \p1 = (topleft), \p2 = (bottomright)
in ($(\x1,\y1)!.5!(\x1,\y2)$) node[right]{6 metres};
```
But why did the first two attempts not work?
EDIT (in response to request for more detail):
If it helps, you can assume that the context of the command above is something like:
```
\usetikzlibrary{calc}
\begin{tikzpicture}
\draw (0,10) coordinate (topleft) rectangle (6,0) coordinate (bottomright);
%% relevant let statement would go just below here
\end{tikzpicture}
```
but I do not want a solution that uses the knowledge that the coordinates are (0,10) and (6,0).
|
https://tex.stackexchange.com/users/136
|
Why is this let expression not working in TikZ (calculating a midpoint)?
| false |
I ran into a similar problem. I am not sure, but it *seems* as if TikZ has some problems with evaluating nested expressions. So, instead of calulating
```
0.5*(\y1 + \y2)
```
I would suggest to calculate
```
0.5*\y1+0.5*\y2
```
This worked for me.
|
6
|
https://tex.stackexchange.com/users/870
|
2211
| 1,543 |
https://tex.stackexchange.com/questions/2197
|
13
|
I have a rectangle in TikZ and the top left and bottom right corners are called (topleft) and (bottomright) respectively. I wanted to have a label midway down the left hand side of the rectangle, so I tried the following, both of which failed with cryptic error messages:
```
\draw let \p1 = (topleft), \p2 = (bottomright)
in (\x1,\pgfmathparse{0.5*(\y1 + \y2)}\pgfmathresult) node[right]{6 metres};
```
and
```
\draw let \p1 = (topleft), \p2 = (bottomright)
in (\x1,{0.5*(\y1 + \y2)}) node[right]{6 metres};
```
I got the desired result in a roundabout way:
```
\draw let \p1 = (topleft), \p2 = (bottomright)
in ($(\x1,\y1)!.5!(\x1,\y2)$) node[right]{6 metres};
```
But why did the first two attempts not work?
EDIT (in response to request for more detail):
If it helps, you can assume that the context of the command above is something like:
```
\usetikzlibrary{calc}
\begin{tikzpicture}
\draw (0,10) coordinate (topleft) rectangle (6,0) coordinate (bottomright);
%% relevant let statement would go just below here
\end{tikzpicture}
```
but I do not want a solution that uses the knowledge that the coordinates are (0,10) and (6,0).
|
https://tex.stackexchange.com/users/136
|
Why is this let expression not working in TikZ (calculating a midpoint)?
| false |
**Working with \pgfmathparse inside a path**
If you need to do a calculation inside a path, I recommend to suspend this path, do the calculation, then resume the path. That "escaping" could be done by using the `\pgfextra{code}` macro executing `code`.
In your example, `\pgfextra` may contain the `\pgfmathparse` calculation, `\pgfmathresult` may be used later on in the path.
Here's the modification for your first example:
```
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{calc}
\begin{document}
\begin{tikzpicture}
\draw (0,10) coordinate (topleft) rectangle (6,0) coordinate (bottomright);
\draw let \p1 = (topleft), \p2 = (bottomright)
in \pgfextra{\pgfmathparse{0.5*(\y1 + \y2)}}
(\x1,\pgfmathresult pt) node[right]{6 metres};
\end{tikzpicture}
\end{document}
```
Output:
This advice is for the case that you need to do more complex calculation not easily done by simple expressions or perhaps intersections.
|
12
|
https://tex.stackexchange.com/users/213
|
2212
| 1,544 |
https://tex.stackexchange.com/questions/2209
|
24
|
I know that it is possible to include `somedir/subdir/anotherfile.tex` in `somedir/file.tex` by using `\include{subdir/file}`. Is it possible to do it the other way around?
A Linux workaround that I'm aware of is a symbolic link of `somedir/file.tex` to `somedir/subdir/file.tex`.
|
https://tex.stackexchange.com/users/945
|
(How) can I include the file somedir/file.tex in the file somedir/subdir/anotherfile.tex
| false |
With modern distributions, you can't, for security reasons: the idea is that tex input files should only allow files to be written at the same level or lower in the directory hierarchy, because tex will happily overrwrite preexisting files. *Reading* is ok, as with `\input{../xyz}` but the trouble is that `\include{../xyz}` causes writing of a file `../xyz.aux`, which is not permitted.
One workaround is, as you said, to use symbolic links. Another (not recommended) is to deactivate the security feature:
* in miktex: set environment variable `MIKTEX_ALLOWUNSAFEOUTPUTFILES=1`
* in most other tex distributions, set `openout_any=a`
The best thing is to avoid needing to include files from parent directories. This is good anyway because then the structure of your files can mirror the logical structure of the document.
|
42
|
https://tex.stackexchange.com/users/627
|
2214
| 1,545 |
https://tex.stackexchange.com/questions/2047
|
54
|
The `etex` package provides an interface to e-TeX features. What advantages does it offer to LaTeX users?
Are there any possible disadvantages like incompatibility to any other package or can I just use it without worries?
|
https://tex.stackexchange.com/users/213
|
What are benefits of e-TeX for LaTeX users?
| false |
Now I found the [`etoolbox`](http://ctan.org/pkg/etoolbox) package. It's a toolbox of programming facilities providing LaTeX frontends to some new e-TeX primitives and further features.
It supports
* Definition of "robust" commands: `\newrobustcmd`, `\renewrobustcmd` etc.
* Patching existing commands to be robust: `\robustify`
* Protecting entire chunks of code by `\protecting`
* Defining counters and lengths with arithmetic expressions (`\defcounter`, `\deflength`)
* Using hooks similar to `\AtBeginDocument` but in different variants: `\AfterPreamble`, `\AtEndPreamble`, `\AfterEndPreamble` and `\AfterEndDocument`
* Many shorthands for macro definitions (corresponding to `\def`, `\gdef`, `\edef`, `\let` etc. but with control sequences as first argument and robust)
* Undefining macros
* Arithmetic definitions (similar to `\def`, `\edef` etc. but with integer expressions)
* Expansion control (useful in `\edef` and the like) by `\expandonce`
* Hook management: appending and prepending to hooks
* Patching of existing commands: extracts the text of a command, does search&replace in the code, and reassembles it - nice for workarounds
* Appending and prepending to commands
* Control sequence tests (if defined, if empty, equality)
* String tests (equality, empty or blank)
* Artihmetic tests
* Two different interfaces to boolean switches
* List processing
If some of the features seem to be interesting for you, there's documentation available: `texdoc etoolbox` at the command prompt or the [package documentation](http://tug.ctan.org/tex-archive/macros/latex/contrib/etoolbox/etoolbox.pdf) on CTAN, a reference manual with 30 pages.
The package [`etextools`](http://ctan.org/pkg/etextools) bases on `etoolbox` and provides many further macros. You can access its documentation also by `texdoc` and [on CTAN](http://tug.ctan.org/tex-archive/macros/latex/contrib/etextools/etextools.pdf).
|
18
|
https://tex.stackexchange.com/users/213
|
2216
| 1,546 |
https://tex.stackexchange.com/questions/2215
|
7
|
I would like to have a scrolling marquee across the entire width of a page. I am intending this for a Beamer presentation, but the solution doesn't necessarily have anything to do with beamer. I would rather not use Beamer's built-in `\animate` command because (1) I would like to have control over the frame rate; and (2) I would like the slide to appear as a single page in the PDF. I therefore started playing around with the `animate` package for PDF animations. The tricky part is that I would like to have the marquee scroll *on top of* some other text/images on the slide. My first instinct was to do something like this:
```
\begin{amimateinline}[autoplay,
begin={\begin{tikzpicture}[overlay]},
end={\end{tikzpicture}}]{10}
\multiframe{20}{rmarqueexpos=1.0+-0.05}{
\node at ($(current page.west)!\rmarqueexpos!(current page.east)$) {The marquee text!};
}
\end{animateinline}
```
The problem with this approach is that `animateinline` apparently expects its contents to be a non-zero-width box, and `tikzpicture` overlays are not apparently typeset as a box (I'm assuming they act like floats).
My second, more successful approach was to put the `animateinline` inside of an overlaid node that is centered on `(current page.center)`. The difficulty there is that `animateinline` apparently also expects each frame of the animation to be the same width. Therefore, I have to pad the right and left sides of the marquee with whitespace to make it work.
Here is the closest I have gotten so far:
```
\documentclass{article}
\pagestyle{empty}
\usepackage{tikz}
\usepackage{animate}
\begin{document}
\LARGE Lorem ipsum dolor sit amet, consectetur adipiscing
elit. Vivamus nibh nibh, porttitor eu porttitor ac, tincidunt ut
massa. Nullam quis semper erat. Ut non massa eu est aliquam suscipit
at vel mi. Fusce commodo porttitor metus rhoncus bibendum. Ut
fermentum pharetra lacus, id ornare dolor pretium tempor. Sed
scelerisque mollis nisi quis malesuada. Mauris vitae nisi vitae
augue gravida ultrices et nec metus. Quisque egestas, libero vel
tempor dignissim, dolor tellus lacinia felis, nec imperdiet tortor
ipsum dapibus ipsum. Quisque sodales eleifend molestie. Duis ac
tortor velit. Nullam non justo a nunc tempus dignissim. Praesent
condimentum ullamcorper mi, ut molestie odio placerat at. Duis
consectetur consequat luctus. Nullam neque sem, sodales non porta
ut, commodo vitae justo. Aenean eu facilisis quam. Sed dui nulla,
venenatis a ullamcorper ac, blandit non dolor.
\begin{tikzpicture}[remember picture,overlay]
\node at (current page.center) {
\begin{animateinline}[autoplay]{10}
\multiframe{20}{rmarqueexpos=1.0+-0.05}{
\setbox0=\hbox{\scalebox{2}{\Huge The marquee text!}}
\dimen0=\wd0 % The width of the marquee
\dimen1=\textwidth %% \dimen1 will be the lefthand padding
\advance\dimen1 by \dimen0
\dimen2=\dimen1 %% \dimen2 will be the righthand padding
\advance\dimen2 by -\rmarqueexpos\dimen1
\advance\dimen2 by -\dimen0
\hspace*{-\dimen0}\hspace*{\rmarqueexpos\dimen1}\box0\hbox to \dimen2{}
}
\end{animateinline}
};
\end{tikzpicture}
\end{document}
```
The problem with that is that the margins are a bit off (probably due to my hacked padding).
**Edit:** I solved this problem: It was just an off-by-one error in the `multiframe` for-loop. See my answer for details.
What am I doing wrong (besides being crazy enough to try and do an animated marquee in TeX)?
Is there a better way to do this?
|
https://tex.stackexchange.com/users/737
|
Animated scrolling marquee across an entire page.
| false |
The margin issue was due to an off-by-one error in the `multiframe` for-loop. Increasing `{20}` to `{21}` solves that problem. I guess the question now is: Is there a better, less-hackish way to do this? I am going to leave this question open for a while in case anyone has an answer to that.
|
0
|
https://tex.stackexchange.com/users/737
|
2217
| 1,547 |
https://tex.stackexchange.com/questions/2218
|
6
|
I am trying to create a command to modify fontsize with one parameter, it seems that the paramater is not expanding properly:
```
\newcommand{\mycfs}[1]{\fontsize{#1pt}{1.2*#1pt}}
```
|
https://tex.stackexchange.com/users/942
|
How to create a newcommand for fontsize?
| false |
Omit the \* if you use a factor. Further, introduce a length macro that can be multiplied. If needed, add `\selectfont` to make it effective:
```
\newlength{\mysize}
\newcommand{\mycfs}[1]{\setlength{\mysize}{#1pt}%
\fontsize{\mysize}{1.2\mysize}\selectfont}
```
|
9
|
https://tex.stackexchange.com/users/213
|
2219
| 1,548 |
https://tex.stackexchange.com/questions/2218
|
6
|
I am trying to create a command to modify fontsize with one parameter, it seems that the paramater is not expanding properly:
```
\newcommand{\mycfs}[1]{\fontsize{#1pt}{1.2*#1pt}}
```
|
https://tex.stackexchange.com/users/942
|
How to create a newcommand for fontsize?
| false |
This works, using e-TeX functionality to calculate the baseline skip on the fly:
```
\newcommand{\mycfs}[1]{\fontsize{#1pt}{\dimexpr 1.2pt*#1pt\relax}}
```
Or this solution, without e-TeX, that uses an intermediate dimension register
so is a bit more complex:
```
\newdimen\mycfsdim
\newcommand{\mycfs}[1]{\mycfsdim=#1pt \mycfsdim=1.2\mycfsdim
\fontsize{#1pt}{\the\mycfsdim}\selectfont}
```
|
7
|
https://tex.stackexchange.com/users/89
|
2222
| 1,549 |
https://tex.stackexchange.com/questions/2220
|
8
|
According to the TikZ manual I can use `name=` to assign a label to the drawings, but when I do the following:
```
\begin{tikzpicture}
\draw [ blue, thick, name=e1] (10pt,10pt) ellipse (50pt and 30pt);
\node (red,above) at (e1.north) {E1};
\end{tikzpicture}
```
I get an error message that `e1` is not defined. What am I doing wrong?
My second question is where can I find a concise syntactical representation of TikZ's commands?
|
https://tex.stackexchange.com/users/833
|
TikZ: Labeling objects and referencing them
| false |
You can only name nodes, not arbitrary parts of a drawing. In your example, if you wanted to be able to refer to the ellipse by name, you'd need to create it as a node instead of a plain ellipse. Try replacing your `\draw` command with this:
```
\node[draw=blue,ellipse,name=e1,minimum width=100pt,minimum height=60pt] at (10pt,10pt) {};
```
To address the second part of your question, I know of no better documentation of TikZ than the PGF manual itself. I've never heard of a short "cheat sheet" that briefly lists TikZ commands along with reminders of their syntax, if that's what you're looking for. Although it might be out there somewhere, at least for the most commonly used ones. You could probably create such a quick reference by extracting lines from the PGF documentation.
|
12
|
https://tex.stackexchange.com/users/125
|
2223
| 1,550 |
https://tex.stackexchange.com/questions/2221
|
6
|
This question is related to [How to create a newcommand for fontsize?](https://tex.stackexchange.com/questions/2218/how-to-create-a-newcommand-for-fontsize).
I would like to change the fontsize within `\ul` of the `soul` package. For example:
```
\newcommand{\mycfs}[1]{\fontsize{#1pt}{1.2#1pt}\selectfont}
\soulregister{\mycfs}{1}
\ul{{\mycfs{6} Size 6 font} Normal size font}
```
This error message occurs: `! Package soul Error: Reconstruction failed.`
How can this be fixed?
|
https://tex.stackexchange.com/users/942
|
Changing fontsize within soul underline
| false |
`\mbox` could already fix it for you:
```
\documentclass{book}
\usepackage{soul}
\newlength{\mysize}
\newcommand{\mycfs}[1]{\setlength{\mysize}{#1pt}%
\fontsize{\mysize}{1.2\mysize}\selectfont}
\begin{document}
text
\ul{\mbox{\mycfs{6}Size 6 font} Normal size font}
text
\end{document}
```
Output:
|
1
|
https://tex.stackexchange.com/users/213
|
2224
| 1,551 |
https://tex.stackexchange.com/questions/2184
|
14
|
After browsing through related threads, I am now of the understanding (please correct me if I am wrong) that the rule of thumb is to use the `\bigl`,`\bigr` pair with brackets, parentheses, etc. for operators like sums, products, and integrals, and `\left`,`\right` in all other cases.
I only recently found out about `\middle` , which has solved what had been a vexing problem for me: delimiters for function arguments (slashes, bars) not scaling properly. Leafing through my cheatsheet has not been of much help, so I wish to ask: is there an equivalent of `\middle` for `\bigl` and `\bigr`, or would the use of `\middle` along with that pair not be gauche?
|
https://tex.stackexchange.com/users/nan
|
Is there a command for large middle delimiters consistent with \bigl and \bigr?
| false |
Also, if you need the large middle delimiters for typing set-builder or bra-ket notation, you can use the `\Set{...|...}`, `\Braket{...|...}`, `\Bra{...}`, and `\Ket{...}` commands from the braket package.
|
7
|
https://tex.stackexchange.com/users/941
|
2225
| 1,552 |
https://tex.stackexchange.com/questions/2198
|
101
|
I feel that PDF documents when intended to be uploaded on the Internet should be of minimal final size in bytes. Many strategies exist to create such small documents:
1. Pay attention to the size of the embedded raster images.
2. Create diagrams with `tikz` or `pstricks` and avoid external applications that can create unwanted big files. Using `tikz` or `pstricks` provides access to an almost unlimited control of the properties of a specific object. For instance, creating a point A of coordinates (1,1) should be preferred to a point A of coordinates (1.0000000,1.00000000), that you cannot control in many applications.
3. Pay attention to the fonts used in your documents. Some fonts contain a coding for a single size and are then scaled, when used in titles or equivalents. Some other fonts contain a coding for different size, making the document a bit larger. You may observe a non negligible difference.
I am interested in this 3rd point: have some of you investigated the best fonts for smaller PDF files?
**Edit** [Compress.SmallPDF](http://compress.smallpdf.com/) sounds like a good online solution to efficiently compress pdf files for free.
|
https://tex.stackexchange.com/users/371
|
How to create small PDF files for the Internet
| false |
(Not specifically font related)
A way to create smaller documents with pdf(La)TeX is to use
```
\pdfminorversion=5
\pdfobjcompresslevel=3
\pdfcompresslevel=9
```
This will generally produce considerably smaller files but it requires pdf version 1.5 and might not be readable by old pdf-viewers.
|
22
|
https://tex.stackexchange.com/users/565
|
2226
| 1,553 |
https://tex.stackexchange.com/questions/2110
|
77
|
**Looking back, what really convinced you to begin writing with TeX or LaTeX?**
This question is "community wiki", so there's no reputation to lose or to gain.
Please don't write advantages of TeX and LaTeX or any pros and cons.
I hope to read about something like
* a drastic experience that led you to TeX,
* a beautiful book, paper or poster that changed your view dramatically,
* a first big success with a (La)TeX creation,
* a person who inspired you.
Anything in this spirit would be great. Please post just a single reason or event in each answer. If you further shared a similar experience that you read here, voting that up would be fine.
|
https://tex.stackexchange.com/users/213
|
Most significant reasons that led us to (La)TeX
| false |
I'm just getting started, and haven't actually used LaTeX for a real project yet...
I've had a few projects lately related to programmatically-generated documents, and I'm not satisfied with the results. LaTeX was on my radar, but I didn't have time to investigate until last week.
Some process complex lab data and produce a report that describes the results. Early versions were plain \*.txt files; other than using a bit of white space they were difficult to read at times. Lately I've been using HTML output which allows for more complex formatting and is still accessible; but the output is inconsistent between browsers, and prints terribly!
I have also let the creation of some documents which were quote large and repetitive (over 2400 pages on 11x17!). Typically these documents are created by hand in Word, but that clearly wasn't an option due to the scale needed for these. We were able to generate MS Word files in sections, which were manually stitched together, and tweaked to keep it from breaking.
I wanted to include diagrams, but haven't found a practical method of generating them.
At this point, LaTeX looks to be a great fit, as I can generate plain-text files easily enough (even broken across multiple files), then render them to print-perfect PDF files that anyone can view. With Tikz (or the like), I can even include those diagrams!
|
3
|
https://tex.stackexchange.com/users/902
|
2227
| 1,554 |
https://tex.stackexchange.com/questions/2229
|
227
|
Does latex do anything special with periods? If so, is there a way to differentiate end-of-sentence periods from periods indicating abbreviation?
|
https://tex.stackexchange.com/users/512
|
Is a period after an abbreviation the same as an end of sentence period?
| false |
Yes, using `\@`. The following is adapted from [my blog](http://latex-alive.tumblr.com/post/827168808/correct-punctuation-spaces).
In approximate detail, the idea of `\@` is to indicate when punctuation is or isn’t ending a sentence. Why would you want to do that? By default, Plain TeX and LaTeX both have a feature whereby a little extra space is allowed after a sentence (whether a period or other punctuation mark) to help break the paragraph into lines. If you need a little extra space in this line, better to lump it after the period than add extra space between all the words.
This typesetting approach was very common (often to an exaggerated extent) in the 1800s and early 1900s but nowadays I think is less common. If you don’t like it, write `\frenchspacing` in your preamble and you can forget about whether `\@` is ever required. However, when writing a LaTeX document for another source, such as a journal, it’s polite to follow their style and include such niceties.
One example for using `\@` is after abbreviations such as ‘`Prof.\@ Crumb`’. Without the `\@`, the space after ‘Prof.’ will be mistakenly enlarged—this is a common typographical mistake in (La)TeX documents. Another way (and usually preferred) to do this is to write `Prof.\ Crumb`, which is a little easier to remember and to type.
Conversely, `\@` can also be used to indicate when a punctuation mark *should* end a sentence. By default, punctuation after a capital letter is assumed not to end a sentence (so you can write ‘`M. C. Escher`’ without the `\@`). But if you happened to refer to someone by their initial at the end of a sentence you’d need to write, say,
```
… `So he did', said M\@. (New sentence) …
```
to ensure that the extra spacing *was* included after that final period.
I should also mention that I often don’t use `\@` after punctuation in favour of typing an explicit space control sequence; that is, I prefer to write `Prof.\ Crumb`. This is shorter to type and perhaps more memorable.
There are some important edge cases to consider. Other punctuation is ‘invisible’ to the marker for indicating sentence end; consider:
```
depending on the context of `a' and `b' (etc.) where …
```
The space factor (which is the parameter governing when and where this extra space should appear) isn’t ‘reset’ by the parenthesis and you need to write `(etc.\@)` instead. Here's another example:
```
… `Et cetera et cetera etc.' said the King …
```
Here, there will be extra space after the closing quotes `'` (or `''`) that is incorrectly added due to the presence of the period; the closing bracket `]` is also ‘invisible’ to the space factor.
In the examples above, you don't want extra space after the `(etc.)`, but if an entire sentence is enclosed in parentheses you would:
```
I like eggs and bacon. (Poached and crispy.) Best with coffee.
```
So care should be taken when composing the TeX source. In cases where you know a period will never end a sentence, the best idea is to define a macro for inserting it all without your having to remember it; for example,
```
\makeatletter
\newcommand\etc{etc\@ifnextchar.{}{.\@}}
\makeatother
```
where you would write ‘`(\etc)`’ or ‘`…, \etc, …`’ but if you wanted to finish a sentence with it, you would explicitly include the period:
```
… \etc. (New sentence) …
```
|
126
|
https://tex.stackexchange.com/users/179
|
2230
| 1,555 |
https://tex.stackexchange.com/questions/2099
|
698
|
I'm making all my diagrams in SVG format using Inkscape and then I export them to some other format (e.g. PDF, EPS or PNG). I wrote a short script that does this for me automatically, but I'd like to avoid this step, if possible --- sometimes the conversion from SVG converts the text labels into vectors, and that's annoying. Hence the question:
*Is there a way to include SVG diagrams directly without conversion to an intermediate format?*
Package suggestions, or instructions for specific LaTeX distribution are welcome. Tips and personal experience on which tools you have found to be working reliably would be also appreciated.
|
https://tex.stackexchange.com/users/711
|
How to include SVG diagrams in LaTeX?
| false |
You may also want to look at [Ipe](http://ipe.otfried.org/). It is a graphics editor similar to Inkscape, but integrates tightly with LaTeX, and exports eps and pdf files that are easy to include into TeX documents. It also comes with a svgtoipe script that converts many svg figures to the ipe format, so that they can be edited with Ipe. I'm not sure how well does the conversion handle text, but it is easy to add the necessary labels in Ipe, and since Ipe uses LaTeX to render text, you can have your labels match your text perfectly.
|
27
|
https://tex.stackexchange.com/users/396
|
2232
| 1,556 |
https://tex.stackexchange.com/questions/2233
|
74
|
When studying systems of linear equations, it's nice to remind people that the last column of the coefficient matrix holds the constants. This is often done in books by putting a vertical line between the last column and the next to last column. What is a good way to do this in LaTex?
|
https://tex.stackexchange.com/users/788
|
What's the best way make an "augmented" coefficient matrix?
| false |
If you are using an array to input the matrix, you just have to specify something like
```
\left(\begin{array}{cc|c}
2 & 0 & 1\\
0 & 1 & 1
\end{array}\right)
```
|
25
|
https://tex.stackexchange.com/users/401
|
2234
| 1,557 |
https://tex.stackexchange.com/questions/2233
|
74
|
When studying systems of linear equations, it's nice to remind people that the last column of the coefficient matrix holds the constants. This is often done in books by putting a vertical line between the last column and the next to last column. What is a good way to do this in LaTex?
|
https://tex.stackexchange.com/users/788
|
What's the best way make an "augmented" coefficient matrix?
| false |
The `easybmat` package provides a way to add all sorts of lines between cells in a matrix, including dashed lines which I seem to recall being popular in my undergraduate linear algebra text.
Edit: Here's an example. I'm actually not thrilled about the spacing.
```
\[\left(\begin{BMAT}(@){cc.c}{cc}
a_{11} & a_{12} & b_1\\
a_{21} & a_{22} & b_2
\end{BMAT}\right)\]
```
|
9
|
https://tex.stackexchange.com/users/647
|
2235
| 1,558 |
https://tex.stackexchange.com/questions/2229
|
227
|
Does latex do anything special with periods? If so, is there a way to differentiate end-of-sentence periods from periods indicating abbreviation?
|
https://tex.stackexchange.com/users/512
|
Is a period after an abbreviation the same as an end of sentence period?
| true |
There is the issue of end of sentence space vs. space between words. By default the first one is bigger.
```
\documentclass{article}
\begin{document}
\noindent
e.g. this and that\\
e.g.\ this and that
\end{document}
```
In the first line the space after the 2nd period is typeset like an end of sentence space. In the second line the space after the 2nd period is typeset like a normal inter-word space:
You can setup with `\frenchspacing` that the end of sentence space is not different from the normal inter-word spacing.
An `\@` before a period sets up end of sentence spacing. This is needed, if the sentence ends with a one-capital-letter word.
|
200
|
https://tex.stackexchange.com/users/929
|
2236
| 1,559 |
https://tex.stackexchange.com/questions/2231
|
10
|
Is there a way to make text size and alignment automatically "best fit" on a page? So that a large amount of text will be constrained on the page in a small font, but a small amount of text can be of larger font and centered properly?
The best way I found to fit lots of text on a page is with:
```
\begin{minipage}{width}
...
\end{minipage}
\newpage
```
...but when there is a smaller amount of text, the font remains small and is awkwardly aligned at the top of the page, whereas I'd like it to be centered vertically and horizontally. I tried `\vfill` with `minipage`, but it makes no difference.
For smaller amounts of text, I succeeded with:
```
\mbox{}
\vfill
\begin{center}
....
\end{center}
\vfill
\newpage
```
This centered the text perfectly, but I couldn't constrain a large block to one page with this. I tried combining `minipage` and `\mbox`, but `minipage` overrode the `\vfill` spacing and the alignment was screwed up again for small amounts of text.
|
https://tex.stackexchange.com/users/953
|
Fitting and centering text (both!) in a constrained area
| true |
Okay, TeX isn't really designed with this in mind. That said, it can be done (sort of).
```
\documentclass{article}
\usepackage{lmodern}
\newdimen\fontdim
\newdimen\upperfontdim
\newdimen\lowerfontdim
\newif\ifmoreiterations
\fontdim12pt
\makeatletter
\def\buildbox{%
\setbox0\vbox{\fontsize{\fontdim}{1.2\fontdim}%
\selectfont
\centering
\stuff}%
\dimen@\ht0
\advance\dimen@\dp0
%\message{Total height: \the\dimen@^^J}
}
\newcommand\fillthepage[1]{%
\protected@edef\stuff{#1}%
\buildbox
% Compute upper and lower bounds
\ifdim\dimen@>\textheight
\loop
\fontdim.5\fontdim
\buildbox
\ifdim\dimen@>\textheight
\repeat
\lowerfontdim\fontdim
\upperfontdim2\fontdim
\fontdim1.5\fontdim
\else
\loop
\fontdim2\fontdim
\buildbox
\ifdim\dimen@<\textheight
\repeat
\upperfontdim\fontdim
\lowerfontdim.5\fontdim
\fontdim.75\fontdim
\fi
% Now try to find the optimum size
\loop
%\message{Bounds: \the\lowerfontdim\space
% \the\fontdim\space \the\upperfontdim^^J}
\buildbox
\ifdim\dimen@>\textheight
\moreiterationstrue
\upperfontdim\fontdim
\advance\fontdim\lowerfontdim
\fontdim.5\fontdim
\else
\advance\dimen@-\textheight
\ifdim\dimen@<10pt
\lowerfontdim\fontdim
\advance\fontdim\upperfontdim
\fontdim.5\fontdim
\dimen@\upperfontdim
\advance\dimen@-\lowerfontdim
\ifdim\dimen@<.2pt
\moreiterationsfalse
\else
\moreiterationstrue
\fi
\else
\moreiterationsfalse
\fi
\fi
\ifmoreiterations
\repeat
% build the page
\newpage
\null
\vfill
\box0
\vfill
}
\makeatother
\usepackage{lipsum}
\begin{document}
\fillthepage{\lipsum}
\fillthepage{\lipsum[1]}
\fillthepage{Very little}
\end{document}
```
You can uncomment out the `\message`s if you want to see how it decides on the font sizes to use. It doesn't make any effort to constrain horizontal size, so if you don't give it enough text to work with, you'll run off the right side of the page. (Try `\fillthepage{X}` for an example of that.)
It's pretty much essential that you use a vector font, otherwise it'll tend to go back and forth between two font sizes, spewing warnings and probably never converge. That's why I have the `\usepackage{lmodern}`.
I'm sure there are (many) cases where this doesn't work, but it was sort of fun to write.
Edit: Maybe that `\protected@edef` should just be a `\def`. I was originally thinking expanding it would be better, but now I'm not so sure
|
13
|
https://tex.stackexchange.com/users/647
|
2237
| 1,560 |
https://tex.stackexchange.com/questions/2233
|
74
|
When studying systems of linear equations, it's nice to remind people that the last column of the coefficient matrix holds the constants. This is often done in books by putting a vertical line between the last column and the next to last column. What is a good way to do this in LaTex?
|
https://tex.stackexchange.com/users/788
|
What's the best way make an "augmented" coefficient matrix?
| true |
One way to do this is implemented in the (free, in both senses!) online linear algebra textbook [Linear Algebra](http://joshua.smcvt.edu/linearalgebra/) by Jim Hefferon. It's written in LaTeX and is open-source so one can download the book and its attendant style files. One of them, called `linalgjh.sty` is about typesetting common linear algebra stuff such as augmented matrices and row reductions and the like. The code for the augmented matrices is:
```
\newenvironment{amatrix}[1]{%
\left(\begin{array}{@{}*{#1}{c}|c@{}}
}{%
\end{array}\right)
}
```
and is used as:
```
\begin{amatrix}{2}
1 & 2 & 3 \\ a & b & c
\end{amatrix}
```
(note that the argument is one less than the total number of columns). I guess that the `@{}`s at the start and end are to get the spacing right with the parentheses (mentioned by TH in a comment to fabikw's similar answer).
That style file has several other useful linear algebra macros that may be useful.
|
60
|
https://tex.stackexchange.com/users/86
|
2238
| 1,561 |
https://tex.stackexchange.com/questions/2220
|
8
|
According to the TikZ manual I can use `name=` to assign a label to the drawings, but when I do the following:
```
\begin{tikzpicture}
\draw [ blue, thick, name=e1] (10pt,10pt) ellipse (50pt and 30pt);
\node (red,above) at (e1.north) {E1};
\end{tikzpicture}
```
I get an error message that `e1` is not defined. What am I doing wrong?
My second question is where can I find a concise syntactical representation of TikZ's commands?
|
https://tex.stackexchange.com/users/833
|
TikZ: Labeling objects and referencing them
| false |
It is not a precise answer to your second question, but did you try the [TeXample website](http://www.texample.net/)? It contains *a lot* of examples (including source code) for doing all sorts of nice things with TikZ. In my experience, the TikZ manual can be a bit overwhelming at first glance. So if you are looking for doing something *specific*, you may be better off with adapting an example from this site.
|
1
|
https://tex.stackexchange.com/users/870
|
2239
| 1,562 |
https://tex.stackexchange.com/questions/2221
|
6
|
This question is related to [How to create a newcommand for fontsize?](https://tex.stackexchange.com/questions/2218/how-to-create-a-newcommand-for-fontsize).
I would like to change the fontsize within `\ul` of the `soul` package. For example:
```
\newcommand{\mycfs}[1]{\fontsize{#1pt}{1.2#1pt}\selectfont}
\soulregister{\mycfs}{1}
\ul{{\mycfs{6} Size 6 font} Normal size font}
```
This error message occurs: `! Package soul Error: Reconstruction failed.`
How can this be fixed?
|
https://tex.stackexchange.com/users/942
|
Changing fontsize within soul underline
| false |
I would change the definition of \mycfs so that it no longer has an argument:
```
\documentclass{book}
\usepackage{soul}
\newcommand\mycfs{\fontsize{\mysize}{\the\dimexpr \mysize*1.2\relax}\selectfont}
\newcommand\mysetsize[1]{\edef\mysize{#1pt}}
\soulregister{\mycfs}{0}
\begin{document}
\mysetsize{6}
\ul{\mycfs Size 6 font} Normal size font
\end{document}
```
|
4
|
https://tex.stackexchange.com/users/2388
|
2240
| 1,563 |
https://tex.stackexchange.com/questions/2241
|
29
|
My document uses the `txfonts` package, which provides Times Roman, Helvetica and what appears to be a facsimile of Courier.
However, I dislike the monospace font and find it to be particularly ugly. I am therefore interested in alternatives that ship as part of texlive. Bera mono is nice however I am more in the market for a serif monospace font as opposed to sans serif.
Any ideas/suggestions?
|
https://tex.stackexchange.com/users/753
|
Alternative monospace fonts
| true |
From the Latex Font Catalogue: [typewriter fonts](http://www.tug.dk/FontCatalogue/typewriterfonts.html), which are not all typewriter fonts, but I think they are all monospaced.
|
27
|
https://tex.stackexchange.com/users/175
|
2242
| 1,564 |
https://tex.stackexchange.com/questions/2241
|
29
|
My document uses the `txfonts` package, which provides Times Roman, Helvetica and what appears to be a facsimile of Courier.
However, I dislike the monospace font and find it to be particularly ugly. I am therefore interested in alternatives that ship as part of texlive. Bera mono is nice however I am more in the market for a serif monospace font as opposed to sans serif.
Any ideas/suggestions?
|
https://tex.stackexchange.com/users/753
|
Alternative monospace fonts
| false |
Have a look at the [luximono](http://www.ctan.org/tex-archive/help/Catalogue/entries/luximono.html) font. (Note that it is part of MiKTeX, but not of TeX Live.)
|
3
|
https://tex.stackexchange.com/users/510
|
2243
| 1,565 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.