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/1483
1
In the past, I've given up learning LaTeX because: General * Installing and using fonts is a pain. * Simple things like custom page headers are insufferably hard to implement. * Documentation for the above items is incomplete. * LaTeX shows 10 errors for every 1 SLOC, so the code is impossible to debug. * So many errors that I feel like my code will never compile. * It's a pain having to scroll/find a previewed page every time I update it. Cross-compatibility * Code that compiles in LyX doesn't compile in TeXnicCenter/MiKTeX. * Code that compiles in TeXnicCenter/MiKTeX doesn't compile in TeXShop/MacTeX. * Code that compiles in TeXShop/MacTeX doesn't compile in LyX. * Specifically, adding newlines breaks compilation. Systems * TeXShop/MacTeX requires 1GB of hard drive space. * TeXShop has no Windows or Linux version. * TeXShop has few graphical abilities. I would do better with vi or emacs. * TeXnicCenter has no Linux or Mac OS X version. * TeXnicCenter updates references such as table of contents and BibTeX every three compiles. * TeXnicCenter compilation shortcut requires four button presses on a Mac laptop. * LyX's WYSIWYG isn't really a WYSIWYG. I was able to quickly learn Perl, Python, Ruby, newLISP, and Haskell because they don't have these problems. Instead, these languages offer: * A single multiplatform, standard edition. * Alternative editions for the minority of users who really need them. * A small collection of binaries: perl, cpan; python, pythonw; ruby, irb, rdoc; newlisp; ghc, ghci, runghc, hugs, runhugs. * All-in-one installers: ActiveState Perl, Python, RubyInstaller, newLISP, Haskell Platform. * Small installation size (with the exception of GHC Haskell vs Hugs) * Detailed tutorials with solutions for common errors. In conclusion, I reserve judgment on TeX/LaTeX until the community not only produces a multiplatform system, but champions it in a highly visible way. LyX isn't even mentioned at [Obtaining LaTeX](http://www.latex-project.org/ftp.html).
https://tex.stackexchange.com/users/712
What's a good multiplatform text editor/system?
false
I am glad you are still willing to give TeX a shot! The learning curve can be steep, but hopefully this site can help. There are already answers for most of the points you raised: > > Installing and using fonts is a pain. > > > This can be difficult- but package management tools like TeX Live's `tlmgr` amd MikTeX's `mpm` can take most of the pain away. [The LaTeX Font Catalouge](http://www.tug.dk/FontCatalogue/) is a great place to see which fonts are available and how to use them. TeX and LaTeX are moving towards tighter integration with system fonts through the efforts put into the XeTeX and LuaTeX engines. See the [fontspec](http://tug.ctan.org/cgi-bin/ctanPackageInformation.py?id=fontspec) package for details on how to use those engines to access system fonts. > > Simple things like custom page headers are insufferably hard to implement. > > > There are packages and class files that simplify this considerably. The [fancyhdr](http://tug.ctan.org/cgi-bin/ctanPackageInformation.py?id=fancyhdr) package is a good choice and the [memoir](http://tug.ctan.org/cgi-bin/ctanPackageInformation.py?id=memoir) document class has comparable support baked-in. Also see, [How to set the font for a section](https://tex.stackexchange.com/questions/1455/how-to-set-the-font-for-a-section) for similar discussion concerning section and chapter headings. > > LaTeX shows 10 errors for every 1 SLOC, so the code is impossible to debug. > > > Most of the output of TeX and LaTeX consists of notes about where the typesetting engine was forced to make sub-optimal decisions in order to produce a document that is better overall. All the noise about "badness" is related to this- badness is a metric that TeX tries to optimize to a minimum when typesetting. See [Formatting the console output of Latex](https://tex.stackexchange.com/questions/1191/formatting-the-console-output-of-latex) for information about how to reduce the verbosity of the log output. > > It's a pain having to scroll/find a previewed page every time I update it. > > > A good editor should help with this. > > Code that compiles in LyX doesn't compile in TeXnicCenter/MiKTeX. > > > This is most likely because LyX code is not LaTeX code- it won't compile outside of the LyX environment unless exported. This also means that LaTeX code won't compile in LyX unless imported or transcribed. > > Code that compiles in TeXnicCenter/MiKTeX doesn't compile in TeXShop/MacTeX. > > > Probably due to missing packages- `tlmgr` and `mpm` should help with this. `mpm` is more helpful with on-the-fly installation of missing components. > > TeXShop/MacTeX requires 1GB of hard drive space. > > > This is for the full everything-including-the-kitchen-sink install. You can select subsections when installing via the `install-tl` instructions are [here](http://tug.org/texlive/quickinstall.html). See also [Why is the MacTeX distribution so large? Is there anything smaller for OS X?](https://tex.stackexchange.com/questions/974/why-is-the-mactex-distribution-so-large-is-there-anything-smaller-for-os-x). > > TeXnicCenter updates references such as table of contents and BibTeX every three compiles. > > > This is by design in LaTeX. To get a complete Bibliography with references you must run: ``` pdflatex document bibtex document pdflatex document pdflatex document ``` This is because TeX writes out metadata about cross-references that gets used to enhance the output on subsequent runs: 1. On the first `pdflatex` run, information gets written concerning which citations are needed. 2. `bibtex` uses that information to pull the required citations from a database. 3. `pdflatex` then uses the `bibtex` output to produce a bibliography. 4. With a bibliography present, `pdflatex` can finally insert citations in the text. See [Tools for automating document compilation](https://tex.stackexchange.com/questions/64/tools-for-automating-document-compilation) for ways to make this less of a chore. > > LyX's WYSIWYG isn't really a WYSIWYG. > > > It is not supposed to be. --- TeX-based systems do have a pile of quirks and "WTF moments" but compared to systems like MS Word you usually only have to jump these hurdles once. If I want to reuse a nicely formatted header/footer that I had in a document- I only have to open the source to find the exact steps that were executed to create them. And if there were "WTF issues" or "magic", I usually have a good comment explaining why part of the process looks like voodoo. Comparatively, I still waste a lot of time in MS Word with similar tasks because there is no good way to record in black and white the exact sequences of menu selections and clicks that led to a given output. TeX requires a larger up-front investment of time to get comfortable with, but pays large dividends and your investment in learning the system will not be suddenly and drastically depreciated as was the case with the complete overhaul that occurred in MS Office 2007.
24
https://tex.stackexchange.com/users/17
1490
1,039
https://tex.stackexchange.com/questions/1462
8
Or at least in most distributions...
https://tex.stackexchange.com/users/253
Is there a common set of packages that is available in every distribution?
false
The two main TeX distributions are TeX Live and MiKTeX. Of the two, TeX Live defaults to installing 'everything' while MiKTeX starts with a small, basic set of packages. So the 'core' you can assume is likely to be available is defined more or less by what MiKTeX installs as 'basic' packages. Of course, if you mean Linux distros then life is very different.
7
https://tex.stackexchange.com/users/73
1491
1,040
https://tex.stackexchange.com/questions/1462
8
Or at least in most distributions...
https://tex.stackexchange.com/users/253
Is there a common set of packages that is available in every distribution?
false
There is, I am afraid, nothing like [Python's standard library](http://docs.python.org/library/), which comes with a [long list of uniformly documented modules](http://docs.python.org/modindex.html). Add to that that there's plain TeX, LaTeX and ConTeXt, the whole situation is quite sorry indeed. Good question, and perhaps in a couple of years they'll be a more encouraging answer.
1
https://tex.stackexchange.com/users/176
1493
1,041
https://tex.stackexchange.com/questions/1492
157
I compile most of my documents via Makefiles which take care of the bibliography, indexes, etc. Often I'd like to compile different versions from the same TeX file changing only small things (e.g. a beamer presentation plus a version with the `handout` option). Is there any standard mechanism for passing parameters to the TeX file so that I can just type `make handout` to get the `handout` version in the above example?
https://tex.stackexchange.com/users/83
Passing parameters to a document
false
I know that your question is focused on LaTeX. I just want to mention that ConTeXt provides such an option. You can use ``` context --mode=handout filename ``` to enable handout mode. See [ConTeXt wiki](http://wiki.contextgarden.net/Modes) for details
16
https://tex.stackexchange.com/users/323
1494
1,042
https://tex.stackexchange.com/questions/1492
157
I compile most of my documents via Makefiles which take care of the bibliography, indexes, etc. Often I'd like to compile different versions from the same TeX file changing only small things (e.g. a beamer presentation plus a version with the `handout` option). Is there any standard mechanism for passing parameters to the TeX file so that I can just type `make handout` to get the `handout` version in the above example?
https://tex.stackexchange.com/users/83
Passing parameters to a document
false
Here's a hacky way, probably this is the wrong way :). Instead of passing a filename, you can pass a sequence of commands. So in particular, you could do something like ``` pdflatex "\def\ishandout{1} \input{foo.tex}" ``` which defines the macro `\ishandout` (to be `1`) and then reads `foo.tex`. And then, inside `foo.tex`, you can check whether `\ishandout` is defined: ``` \ifdefined\ishandout \documentclass[handout]{beamer} \else \documentclass{beamer} \fi ```
174
https://tex.stackexchange.com/users/490
1495
1,043
https://tex.stackexchange.com/questions/1398
8
I'm in the middle of a "drop a file here and compile it using LaTeX" project. I have a [Dropbox](http://dropbox.com) and I would like to drop a .tex file in a specific folder and have a script that compiles it for me. I'm on Mac OS X (Snow Leopard). Can you point me on a .sh script or an Automator one (a tutorial would be good too) that compiles my documents into a .pdf file using pdfLaTeX? How could I handle the LaTeX document dependencies like .sty, images, whatever? **EDIT**: I posted the question on SuperUser and I found a good suggestion about using latexmk+folderactions, so go to [Dropbox + Latex: automated pdf compile [SU]](https://superuser.com/questions/173914/dropbox-latex-automated-pdf-compile) for details.
https://tex.stackexchange.com/users/633
Dropbox & LaTeX compiling automation
false
To make things much easier for yourself, you could use [Rubber](http://iml.univ-mrs.fr/~beffara/soft/rubber/) as the compiler. Rubber handles all the dependency stuff for you, so there's no need to reinvent the wheel. It's a command-line tool, so you can combine it with any mechanism, such as the previously-mentioned Folder Actions (if you're using a Mac), or anything else. You *might* want to write a wrapper which checks the exit status, and pops up the `.log` file if it fails, too. (Or, since you're on Mac, a Growl notification?)
0
https://tex.stackexchange.com/users/708
1496
1,044
https://tex.stackexchange.com/questions/100
73
Is there something like `indent` for LaTeX? I have a collaborator that is using Scientific Workplace and the code it produces is totally messed up; I know I shouldn't expect miracles, but any machine support would be useful. EDIT: This question is quite undefined without my comment to KeithB's answer; the idea is to save VC-friendly one sentence/one paragraph per text file line structure which SWT "fixes" by wrapping everything into fixed column width format.
https://tex.stackexchange.com/users/nan
Tool for cleaning LaTeX code
false
What exactly is the problem? The way I use SWP, it produces very clean code. Have you asked your collaborator to save his files as "Portable Latex"? SWP breaks the code up into lines of roughly the same length. When it breaks math, it puts % sign in. This is correct, but if the line breaks have been lost, it causes problems.
5
https://tex.stackexchange.com/users/714
1497
1,045
https://tex.stackexchange.com/questions/1492
157
I compile most of my documents via Makefiles which take care of the bibliography, indexes, etc. Often I'd like to compile different versions from the same TeX file changing only small things (e.g. a beamer presentation plus a version with the `handout` option). Is there any standard mechanism for passing parameters to the TeX file so that I can just type `make handout` to get the `handout` version in the above example?
https://tex.stackexchange.com/users/83
Passing parameters to a document
true
I do this by using symlinks and testing the jobname. That is, I have a main (la)tex file and a bunch of symlinks to it. To find out which symlink was actually used, I examine the `\jobname` macro in my document and set certain parameters accordingly. In particular, if `\jobname` contains the string "handout", then the beamer class is called using the `handout` option. I do this by using a "wrapper" class which sets things up before calling the *real* class.
30
https://tex.stackexchange.com/users/86
1498
1,046
https://tex.stackexchange.com/questions/1499
11
I am trying to typeset a table indicating various kinds of `$\subset$` relations for objects in a grid. Is there a way to obtain a subset symbol that applies vertically, between objects where one is above the other? Detexify doesn't seem to have a symbol like this, although there are many vertical arrow-like objects in the Comprehensive LaTeX Symbol List. This can be done by drawing a picture (e.g. with TiKZ or Xy-pic), or one could apply a rotation somehow to a standard "horizontal" symbol. I would be happy with a solution that only worked with PDF files. Is there a "best practice" for rotating individual symbols?
https://tex.stackexchange.com/users/132
What is the best way to obtain a "vertical" subset symbol?
false
A quick way: you could use `\cap` and `\cup`. For rotating I would use `\rotatebox` of the `graphicx` package.
4
https://tex.stackexchange.com/users/213
1500
1,047
https://tex.stackexchange.com/questions/1492
157
I compile most of my documents via Makefiles which take care of the bibliography, indexes, etc. Often I'd like to compile different versions from the same TeX file changing only small things (e.g. a beamer presentation plus a version with the `handout` option). Is there any standard mechanism for passing parameters to the TeX file so that I can just type `make handout` to get the `handout` version in the above example?
https://tex.stackexchange.com/users/83
Passing parameters to a document
false
Have the target in your Makefile clobber a file that is `\input` by your Latex document, which, say, sets or resets a `\newif` conditional. For example, let the Makefile run `echo "\handouttrue">flags.tex; latex manuscript` on the `handout` goal. Then `manuscript.tex` might begin: ``` \newif\ifhandout \input{flags} \documentclass... ``` in document: ``` \ifhandout ... \else ... \fi ```
35
https://tex.stackexchange.com/users/175
1501
1,048
https://tex.stackexchange.com/questions/1492
157
I compile most of my documents via Makefiles which take care of the bibliography, indexes, etc. Often I'd like to compile different versions from the same TeX file changing only small things (e.g. a beamer presentation plus a version with the `handout` option). Is there any standard mechanism for passing parameters to the TeX file so that I can just type `make handout` to get the `handout` version in the above example?
https://tex.stackexchange.com/users/83
Passing parameters to a document
false
What ConTeXt does is, in simplified form, something like this: ``` # Makefile rule handout: echo "\\RequirePackage[handout]{beamer}" > myfile-options.tex echo "\\endinput" >> myfile-options.tex pdflatex myfile rm myfile-options.tex ``` Where `myfile.tex` (loads a document class that ...) starts with ``` \InputIfFileExists{\jobname-options.tex} ``` You can then adjust the Makefile rule to put whatever you like in the options file.
9
https://tex.stackexchange.com/users/89
1502
1,049
https://tex.stackexchange.com/questions/1454
27
I've always used `\left` and `\right` with my delimiters, but [Martin Heller's answer](https://tex.stackexchange.com/questions/1232/difference-between-big-and-bigl/1234#1234) to [another question](https://tex.stackexchange.com/questions/1232/difference-between-big-and-bigl) indicates that this method gives incorrect spacing. The correction appears to be prepending `\mathopen{}`. Is this the canonical "correct" method? And what exactly does the `\mathopen` command do? A quick Google search does not turn up much useful information on it. The other alternative offered involved the `\biggl` and `\biggr` commands and their ilk. I've never quite felt comfortable with using these because it doesn't feel right to specify these sizes manually. Is there a reason to prefer these commands to `\left` and `\right`?
https://tex.stackexchange.com/users/101
What is the correct way to do delimiters?
false
Well, in most cases `\left` and `\right` are not needed. Often the size of delimiters does not need to be changed. For example `$(a+b)$` is enough and gives the same result as `$\left(a+b\right)$`. There are many cases where `\left` and `\right` choose the wrong sizes, for example `$\left(\sum_{i=1}^\infty ... \right)$` gives most likely far to big delimiters, better is to select the appropriate size yourself. `$\Bigl( \sum ...\Bigr)$` is probably what I would do (I just finished typing my PhD thesis in maths and have not used a single time the `\left` or `\right` command). `\mathopen` belongs with `\mathord`, `\mathop`, `\mathbin`, `\mathrel`, `\mathclose` and `\mathpunct` to a family of commands which changes the classes of individual characters or whole subformulas in mathmode. More information can be found in Knuth's "The TeXbook", p. 154ff.
9
https://tex.stackexchange.com/users/715
1503
1,050
https://tex.stackexchange.com/questions/1499
11
I am trying to typeset a table indicating various kinds of `$\subset$` relations for objects in a grid. Is there a way to obtain a subset symbol that applies vertically, between objects where one is above the other? Detexify doesn't seem to have a symbol like this, although there are many vertical arrow-like objects in the Comprehensive LaTeX Symbol List. This can be done by drawing a picture (e.g. with TiKZ or Xy-pic), or one could apply a rotation somehow to a standard "horizontal" symbol. I would be happy with a solution that only worked with PDF files. Is there a "best practice" for rotating individual symbols?
https://tex.stackexchange.com/users/132
What is the best way to obtain a "vertical" subset symbol?
true
The `graphics` package also lets you rotate boxes, as explained in Section 7.2 of Lamport's *LaTeX: A document preparation system*. You use `\rotatebox{x}{text}`, where `x` is a specified angle in the positive (counterclockwise) direction with the "positive *x*-axis", which extends horizontally from the basepoint of the box that contains `text`.
9
https://tex.stackexchange.com/users/491
1504
1,051
https://tex.stackexchange.com/questions/1307
14
I'm no typography expert, but I heard that the bullets and numbers in itemize/enumerate environments are better placed outside of the main body of text, i.e. in the margin. How can I do that in LaTeX? And a bonus question, how can I do that in ConTeXt? :) **EDIT**: One use is in this thesis: <http://www.duo.uio.no/sok/work.html?WORKID=81971&lang=en> but I did not find any nested list there. Another case is this eBook: <http://designingfortheweb.co.uk/book/part3/part3_chapter13.php>
https://tex.stackexchange.com/users/628
How to put bullets in the margin?
false
I actually found the source for that thesis somewhere, and extracted the following (ok, I added a . for the enum-list!) [Here is the thesis source, if anyone else is interested later on.](http://bitbucket.org/uggedal/thesis/src/) ``` % Enumeratable list \newenvironment{enum}{% \begin{list}{\arabic{enumi}.}{% \setlength{\topsep}{\onelineskip} \setlength{\partopsep}{0pt} \setlength{\parsep}{\parskip} \setlength{\itemsep}{\parskip} \setlength{\leftmargin}{0pt} \setlength{\itemindent}{0pt} \usecounter{enumi} } }{\end{list}} % Itemized list \newenvironment{items}{% \begin{list}{\textbullet}{% \setlength{\topsep}{\onelineskip} \setlength{\partopsep}{0pt} \setlength{\parsep}{\parskip} \setlength{\itemsep}{\parskip} \setlength{\leftmargin}{0pt} \setlength{\itemindent}{0pt} } }{\end{list}} % Definitions in lists \newcommand{\iterm}[1]{\item \term{#1}} ```
1
https://tex.stackexchange.com/users/656
1505
1,052
https://tex.stackexchange.com/questions/1368
33
For example: ``` \begin{equation} \delta % ok \Delta % ok \epsilon % ok \Epsilon % error \end{equation} ```
https://tex.stackexchange.com/users/572
Why can I only use some capital greek letters inside my equations?
false
David's point is worth underlining: > > So basically, nobody would use a capital epsilon in a formula because it'd be visually indistinguishable from E. > > > If you wanted to type something actually in Greek, then you would use one of the packages designed for that (search on CTAN for "greek" to get an idea of what's available). The Greek letters that are defined in unadorned LaTeX should not be viewed as letters but as mathematical symbols. So α should be viewed in the same regard as something like ≤. This is underlined by their appearance: just as "x" looks different in text and in maths, so "α" will look different in text and in maths. So the fact that "Α" (`\Alpha`) and the like are missing is simply because regarded as a symbol, it's just "A", and *no-one* would ever write `\Alpha` because they can just write `A` and the fact of calling it "Alpha" adds nothing. Compare this with "x" (`x`) and "×" (`\times`) where the different names actually mean something (variable versus operator). So, in summary, if you want to type `\Epsilon` and the system complains then you are doing something wrong: either you are trying to type something in Greek without loading a proper Greek alphabet, or you are distinguishing in the source code something that will be indistinguishable in the actual document.
14
https://tex.stackexchange.com/users/86
1506
1,053
https://tex.stackexchange.com/questions/1507
18
I'm working on a document that has been published only as a PDF file until now. To utilize some of PDF's features, it uses the packages `pdfpages` and `pdftex` and commands like `includepdf{}`. But soon that document shall be available in both PDF an HTML format. I figured out I can use `htlatex` / `tex4ht` to convert it, but it seems that this tool is not compatible with the special pdf features and packages. Once I remove them, it works. Removing the pdf stuff, converting to html and then putting it in again manually is not an option *(This is an evolving document that has been worked on for over 10 years by a large number of contributors and is still edited by several people, so we rely on an automated build process using `make`)*. Is there any way similar to *conditional compilation* to ignore some `\usepackage` directives on some of the make runs, or do you have any other hint on how to do this?
https://tex.stackexchange.com/users/717
How to create PDF and HTML output from the same source
true
You can use package ifpdf and enclose pdf-specific stuff in \ifpdf ... \fi ``` \usepackage{ifpdf} \ifpdf %pdf specific stuff \fi ``` Alternatively, you can make the pdf-file and convert to html using a tool like [pdftohtml](http://pdftohtml.sourceforge.net/).
11
https://tex.stackexchange.com/users/565
1508
1,054
https://tex.stackexchange.com/questions/1507
18
I'm working on a document that has been published only as a PDF file until now. To utilize some of PDF's features, it uses the packages `pdfpages` and `pdftex` and commands like `includepdf{}`. But soon that document shall be available in both PDF an HTML format. I figured out I can use `htlatex` / `tex4ht` to convert it, but it seems that this tool is not compatible with the special pdf features and packages. Once I remove them, it works. Removing the pdf stuff, converting to html and then putting it in again manually is not an option *(This is an evolving document that has been worked on for over 10 years by a large number of contributors and is still edited by several people, so we rely on an automated build process using `make`)*. Is there any way similar to *conditional compilation* to ignore some `\usepackage` directives on some of the make runs, or do you have any other hint on how to do this?
https://tex.stackexchange.com/users/717
How to create PDF and HTML output from the same source
false
[tex2page](http://evalwhen.com/tex2page/index.html) usually produces stunning html pages.
6
https://tex.stackexchange.com/users/337
1509
1,055
https://tex.stackexchange.com/questions/1319
976
If you were asked to show examples of beautifully typeset documents in TeX & friends, what would you suggest? Preferably documents available online (I'm aware I could go to a bookstore and find many such documents called 'books'). Extra bonus for documents whose LaTeX source is available. This is not an idle question. Seeing great examples of any craft is both educational and inspiring, let alone explaining why we prefer TeX to Word or other text editors. For instance, I like how Philipp Lehman's [Font Installation Guide](https://texdoc.org/serve/fontinstallationguide/0) looks. I don't know enough LaTeX to realize how much customization was done, but the ToC looks polished. Your nominations, please ...
https://tex.stackexchange.com/users/564
Showcase of beautiful typography done in TeX & friends
false
The last document I opened that made me say "wow" was the [`elsarticle` document class documentation](https://www.elsevier.com/__data/assets/pdf_file/0008/56843/elsdoc-1.pdf). The layout is highly nonstandard, and it wouldn't be suitable for most purposes, but it sure displays beautifully.
18
https://tex.stackexchange.com/users/520
1510
1,056
https://tex.stackexchange.com/questions/1512
7
I'm having a frame in beamer which compiles just right when I do not use pauses (\pause). However, when I pause the different list items, the last items do not appear on the frame anymore (actually, they are outside the frame viewable part). It seems in some way beamer has some problem calculating how to fit the different items on the page when pauses are included. Any idea how to avoid this problem? EDIT : Some source code exhibiting the problem : ``` \documentclass[slidetop,11pt]{beamer} \linespread{1.2} \begin{document} \begin{frame}{Kubo-Greenwood Transport Formalism : Derivation} Mott Method : \begin{itemize} \pause \item Electric field : \footnotesize \begin{equation*} E(t) = E_0 cos(\omega t) u_x \end{equation*} \normalsize \pause \item Coulomb gauge ($E=\delta A / \delta t$) : \footnotesize \begin{equation*} A(t) = -\frac{E_0}{2 i \omega} (e^{i \omega t} - e^{-i \omega t}) u_x \end{equation*} \normalsize \pause \item First order perturbation of H : \footnotesize \begin{equation*} \delta \widehat{H} (t) = \frac{2e \widehat{P}.A(t)}{2 m} = e \widehat{V}.A(t) = -\frac{e E_0}{2 i \omega}(e^{i\omega t} - e^{-i \omega t}) \widehat{V}_x \end{equation*} \normalsize \pause \item Transition from a state at t=0 to a state at t : \footnotesize \begin{equation*} p_{nm} (t) = \frac{1}{\hbar^2} \left |\int_0^t d\tau e^{i(E_m-E_n) \tau / \hbar} \langle m|\delta \widehat{H}(\tau)|n \rangle \right |^2 \end{equation*} \normalsize \pause \item At long times : \footnotesize \begin{equation*} \frac{p_{nm}(t)}{t} = \frac{2 \pi}{\hbar} \left(\frac{e2E_0}{2 \omega}\right)^2 \langle m|\widehat{V}_x|n \rangle \left[ \delta(E_m-E_n+\hbar \omega) + \delta(E_m-E_n-\hbar \omega)\right] \end{equation*} \normalsize \end{itemize} \end{frame} \end{document} ``` And actually, thanks to your comment vanden to give a minimal amount of packages and comments, I managed to find the cause to this compilation error. It is the "\linespread{1.2}" command that messes things up when using \pause. If no fix available, I'll just comment it out I guess.
https://tex.stackexchange.com/users/660
\pause messes up the page layout
true
There is special syntax for item's - I've never tried `pause` with lists for that reason, but my guess is that it's causing trouble. Try removing all the pauses and replace `\begin{itemize}` with ``` \begin{itemize}[<+->] ``` This causes each item to be uncovered one by one. For more fine-grained control, instead of the above change, use e.g. ``` \item<3-> ``` To make an item appear on slides 3 and above. There are other variants, see the Beamer user guide.
5
https://tex.stackexchange.com/users/490
1514
1,057
https://tex.stackexchange.com/questions/1517
47
I am currently letting friends and family spellcheck my thesis written with LaTeX. Since my markup is macro-heavy and not all of them have ever used another editor but MS Word, I cannot let them work with the source files directly. What is the best way for them to review the PDF and send me comments, so that I can quickly integrate them back into my .tex files? Some of them have Adobe Acrobat at work and can send me annotated PDFs, but at least 50% of the time of fixing the changes is searching the exact position of the missing comma or mistake. Is there a (preferably cross-plattform) solution that would make their and my life easier?
https://tex.stackexchange.com/users/595
Workflow for reviewing PDFs generated from TeX?
false
you could install the FoxIt PDF reader. In its latest version it has a comment function. Your friends could make suggestions and save those in their copy of your thesis.
2
https://tex.stackexchange.com/users/632
1518
1,058
https://tex.stackexchange.com/questions/1517
47
I am currently letting friends and family spellcheck my thesis written with LaTeX. Since my markup is macro-heavy and not all of them have ever used another editor but MS Word, I cannot let them work with the source files directly. What is the best way for them to review the PDF and send me comments, so that I can quickly integrate them back into my .tex files? Some of them have Adobe Acrobat at work and can send me annotated PDFs, but at least 50% of the time of fixing the changes is searching the exact position of the missing comma or mistake. Is there a (preferably cross-plattform) solution that would make their and my life easier?
https://tex.stackexchange.com/users/595
Workflow for reviewing PDFs generated from TeX?
false
The best tools for copy editing are still Microsoft Word and OpenOffice.org with their “record changes” feature switched on. Have you tried copying the PDF content (or the stripped TeX source – `detex` does that) into a Word document and distributing that? I know that the result is not always acceptable – but when it is, this solution is probably the easiest and fastest (both for you and for the copy editors).
2
https://tex.stackexchange.com/users/42
1519
1,059
https://tex.stackexchange.com/questions/1516
7
If I have a Tex font, and I want to really understand how it will be laid out by Tex, and what features of the font to bear in mind when tuning my output to be beautiful, what tools are useful for this? 1. I've heard that the usual measure of font size, points per em, is tricky. Is there a good overview of how these measurements are used in font design? One that relates this information to Metafont and True/Open Type fonts? 2. I'd like to see where baselines and the em square are on the glyphs of a font. Are there tools to do that? 3. Where can I get summary information about fonts? How do I understand the content of .tfm files? Are there tools that generate these summaries? 4. Is there relevant information in fontspec? I've asked this question as a generalisation of [How to determine the true size of a font](https://tex.stackexchange.com/questions/1401/how-to-determine-the-true-size-of-a-font), because the narrow discussion there didn't really settle all the issues.
https://tex.stackexchange.com/users/175
How to make sense of font metrics?
true
Here is an attempt at answering item 2, assuming you are using a traditional TeX or pdfTeX format with TFM-based fonts (not XeLaTeX or LuaLaTeX): For plain TeX, there is [`testfont.tex`](http://tug.ctan.org/pkg/testfont). For LaTeX, the [`fonttable`](http://tug.ctan.org/tex-archive/macros/latex/contrib/fonttable) package does something similar. For context, there is the `\showfont` command. *PS: I have no idea how to answer anything else; 1 and 3 are much too general for an answer that is shorter than a medium-sized book, and I know nothing of 4.*
3
https://tex.stackexchange.com/users/89
1520
1,060
https://tex.stackexchange.com/questions/1517
47
I am currently letting friends and family spellcheck my thesis written with LaTeX. Since my markup is macro-heavy and not all of them have ever used another editor but MS Word, I cannot let them work with the source files directly. What is the best way for them to review the PDF and send me comments, so that I can quickly integrate them back into my .tex files? Some of them have Adobe Acrobat at work and can send me annotated PDFs, but at least 50% of the time of fixing the changes is searching the exact position of the missing comma or mistake. Is there a (preferably cross-plattform) solution that would make their and my life easier?
https://tex.stackexchange.com/users/595
Workflow for reviewing PDFs generated from TeX?
false
You can ask one of the people that have a full Adobe Acrobat to enable the document for commenting in the Adobe Reader.
3
https://tex.stackexchange.com/users/89
1521
1,061
https://tex.stackexchange.com/questions/1517
47
I am currently letting friends and family spellcheck my thesis written with LaTeX. Since my markup is macro-heavy and not all of them have ever used another editor but MS Word, I cannot let them work with the source files directly. What is the best way for them to review the PDF and send me comments, so that I can quickly integrate them back into my .tex files? Some of them have Adobe Acrobat at work and can send me annotated PDFs, but at least 50% of the time of fixing the changes is searching the exact position of the missing comma or mistake. Is there a (preferably cross-plattform) solution that would make their and my life easier?
https://tex.stackexchange.com/users/595
Workflow for reviewing PDFs generated from TeX?
false
I can highly recommend [Skim.app](http://skim-app.sourceforge.net/) (BSD license) if they are using MacOSX. This tool has been valuable to my research and it provides various ways of commenting on pdf files.
6
https://tex.stackexchange.com/users/337
1523
1,062
https://tex.stackexchange.com/questions/1517
47
I am currently letting friends and family spellcheck my thesis written with LaTeX. Since my markup is macro-heavy and not all of them have ever used another editor but MS Word, I cannot let them work with the source files directly. What is the best way for them to review the PDF and send me comments, so that I can quickly integrate them back into my .tex files? Some of them have Adobe Acrobat at work and can send me annotated PDFs, but at least 50% of the time of fixing the changes is searching the exact position of the missing comma or mistake. Is there a (preferably cross-plattform) solution that would make their and my life easier?
https://tex.stackexchange.com/users/595
Workflow for reviewing PDFs generated from TeX?
false
Konrad is right: use Word or OpenOffice, with Word being rather nicer to work with. LyX is not too bad, but it is not nice to ask family and friends to install it. I recommend Word where you can. Work with the source if you can, don't detex, and don't work with the PDF, since the back and forth generally causes problems, needlessly missing corrections or introducing errors that you are likely to miss. You can put the source text directly in Word, and highlight regions that don't contain text to be reviewed (say, middle grey on pale grey), and it is possible to tell Word to make these regions uneditable. Switch the document to Track Changes, and send both this document and the PDF to your reviewers. If you send the text to several people, it is likely that one does a far better job than the others and if you are lucky returns them as tracked changes: work with this text and add additional changes from other comments from your friends and family. A nice bonus: Word's spelling checker is good, and you can set the language of the highlighted regions to non-spellcheckable, but please switch off the deeply problematic grammar checker. Then at the end, with all changes accepted and rejected, and all issues handled, turn your Word document back into plain text, run it through Latex, and give the output a last, careful read through. I made some notes on working through changes on my weblog: [Reviewing Edits](http://www.textproof.com/chronicle/Reviewing_Edits.html).
4
https://tex.stackexchange.com/users/175
1524
1,063
https://tex.stackexchange.com/questions/1516
7
If I have a Tex font, and I want to really understand how it will be laid out by Tex, and what features of the font to bear in mind when tuning my output to be beautiful, what tools are useful for this? 1. I've heard that the usual measure of font size, points per em, is tricky. Is there a good overview of how these measurements are used in font design? One that relates this information to Metafont and True/Open Type fonts? 2. I'd like to see where baselines and the em square are on the glyphs of a font. Are there tools to do that? 3. Where can I get summary information about fonts? How do I understand the content of .tfm files? Are there tools that generate these summaries? 4. Is there relevant information in fontspec? I've asked this question as a generalisation of [How to determine the true size of a font](https://tex.stackexchange.com/questions/1401/how-to-determine-the-true-size-of-a-font), because the narrow discussion there didn't really settle all the issues.
https://tex.stackexchange.com/users/175
How to make sense of font metrics?
false
The font metric (tfm) file contains only metric information about the font. It does not contain information such as the shape of the glyphs. It contains only the information TeX needs to know where to place characters in the font (glyphs) on the page. Here's a program that makes TFM files less inscrutable. ``` $ tftopl --help Usage: tftopl [OPTION]... TFMNAME[.tfm] [PLFILE[.pl]] Translate the font metrics TFMNAME to human-readable property list file PLFILE or standard output. ``` I think that most of your questions involve information that is not in the TFM file.
1
https://tex.stackexchange.com/users/176
1525
1,064
https://tex.stackexchange.com/questions/204
33
The most obvious way to speed up LaTeX processing is to split a large and complex document into smaller pieces. For example, Makefiles, `\beginpgfgraphicnamed`/`\endpgfgraphicnamed` when using TiKZ, and splitting a large file into separate chapters are all helpful in splitting a large job into smaller, hopefully independent pieces. But sometimes this is not enough -- many packages do complicated things under the hood, leading to slow document processing. > > Are there any tools to help isolate > the culprits? > > > It would be great to also have the profiling tool provide suggestions on ways to speed things up.
https://tex.stackexchange.com/users/132
Are there LaTeX performance profiling tools?
false
tikz/pgf seems to provide a general profiler built on top of `\pdfelapsedtime` to optimise TeX code. See "44 Profiler Library" in its manual from a recent CVS checkout. The stable release pgf 2.0 is out of date.
10
https://tex.stackexchange.com/users/337
1526
1,065
https://tex.stackexchange.com/questions/1511
100
I'm new to LaTeX and trying to understand the reason why I'm getting the warning: ``` `h' float specifier changed to `ht' ``` I'm not attempting to change the float property of anything - the warning is showing up if I attempt to simply encapsulate some words in quotation marks: ``` ``highly distributed'' ``` As far as I'm aware, there's no open sections anywhere and the file seems to render properly. So realistically it doesn't matter if the issue gets solved or not; but I'd like to know the reason I'm getting the warning. Thanks in advance.
https://tex.stackexchange.com/users/182
`h' float specifier changed to `ht' warning when not attempting to specify a float
true
You did not change the float specifier, LaTeX did that for you and informed you. The reason is, that you provided just the optional placement argument `h` or `!h` for a float (figure or table), but the float didn't fit on the current page. It had to be put on top of the next page, corresponding to a placement argument `t`. I recommend to use at least `ht` as positioning argument. If you mean "exactly here", then use the argument `H` of the `float` package or one of the possibilities listed here: [Prevent floating of figures or tables](http://texblog.net/latex-archive/graphics/prevent-floating-image-figure-table/). Often it's satisfying to specify all possible placement options `!htbp`, so still letting the figures and tables float. `h` means *here allowed*, `t` means *top*, `b` means *bottom*, `p` means on a float-*page*, `!` means *try harder!* to place it earlier. For more information about the algorithm for placing floats, see [How to influence the position of float environments like figure and table in LaTeX?](https://tex.stackexchange.com/questions/39017/how-to-influence-the-position-of-float-environments-like-figure-and-table-in-lat) **added:** If a previous compilation using the `[h]` option worked with no error reported, the addition of text before the float may decrease the amount of space available for placing the float as specified, triggering a new error. This may not be obvious to an inexperienced user. (See [`h' float specifier changed to `ht'](https://tex.stackexchange.com/q/255658), where the OP associated the error with the content of the added text, not with the float.)
130
https://tex.stackexchange.com/users/213
1527
1,066
https://tex.stackexchange.com/questions/1517
47
I am currently letting friends and family spellcheck my thesis written with LaTeX. Since my markup is macro-heavy and not all of them have ever used another editor but MS Word, I cannot let them work with the source files directly. What is the best way for them to review the PDF and send me comments, so that I can quickly integrate them back into my .tex files? Some of them have Adobe Acrobat at work and can send me annotated PDFs, but at least 50% of the time of fixing the changes is searching the exact position of the missing comma or mistake. Is there a (preferably cross-plattform) solution that would make their and my life easier?
https://tex.stackexchange.com/users/595
Workflow for reviewing PDFs generated from TeX?
false
First of all, you are asking people to do you a favour. That's an important thing to remember and my answer would be different if this was about collaborators. Therefore, the number one principle is: > > Make it as easy as possible for them. > > > Unfortunately, the exact answer is therefore going to be as variable as the people involved! But in case it's of any use, here are my recommendations (which can be broadly interpreted as being what I would like if I were being asked to do this): 1. Don't send anyone the whole thesis. Theses can get quite long and it's a bit daunting to be given the whole lot. People's effectiveness in proof-reading tends to slide a bit after a dozen pages (unless they're specially trained) so chop it up in to sections. 2. I really do find it much easier to proof-read *on paper*. I don't know what it is about it, but I spot far more when I'm reading it on paper rather than on screen. If you're only sending smallish sections, that's not a lot for any one person to print out. Plus you can make it so that it prints 2-up with reasonable margins but without shrinking the print size very much. Offer to pay for the printing cost, and then it's shouldn't be hard for a person to find a scanner to send you back the scanned copy - again, offer to pay for any costs (no-one will take you up on that). 3. For someone who does feel happy doing the proof-reading on-screen, I *strongly* recommend annotating the PDF. If the person has a graphics tablet then it's easy: get hold of one of the programs designed for annotating PDFs and let them use that. If you use [jarnal](http://levine.sscnet.ucla.edu/general/software/tc1000/jarnal.htm) then it's cross-platform (written in java) and it can also be installed on a central webserver so your friends and family don't have to install anything. Other free annotators are [xournal](http://math.mit.edu/%7Eauroux/software/xournal/) and [gournal](http://www.adebenham.com/gournal/) for Linux. These can save their annotations as XML files or export them back as PDFs. 4. Give the person a one-page list of proof-readers' marks. An example can be found [here](https://web.archive.org/web/20151205162134/http://www.merriam-webster.com/mw/table/proofrea.htm), though it would be best to customise it a little. Most won't use it, but the idea is to make it clear that all you really need to know is where an error is, actually what the error is is less important as you'll be able to figure that out for yourself. 5. Provide a nice wide margin for comments. Add or subtract a lot from `\hoffset` to get the whole document as close to the edge as possible. Also, use line numbers so that big comments can be easily "anchored" to points in the text without long lines going this way and that. 6. To make it easy on yourself to integrate their comments, add in easily-findable tags that get shoved in to the margin every, say, paragraph. Then you can search for them rather than searching for words in the text. And if you do need to search for words in the text, make sure that your source is in one-sentence-per-line format as some programs aren't so good at searching when the desired text goes over a linebreak. 7. Lastly, *don't* send them back again. If you need it proof-read again, find some new friends. Ideally, proof-reading should be done at the very last stage and only when you've been through it so many times that you've started to think that "your's" is correct because you've seen it so often. Anyone not trained is going to be far less effective when seeing something for the second time. And you can never predict exactly what minor grammatical points the examiners are going to pick up on (mine was a rather over-heavy use of the word "then" - quite justified, I should add) so trying to be 100% perfect is senseless. In case it's lost in that lot, let me repeat the names of those PDF annotators: * [jarnal](http://levine.sscnet.ucla.edu/general/software/tc1000/jarnal.htm). Java (so cross-platform), can also be used in client-server mode. * [xournal](http://math.mit.edu/%7Eauroux/software/xournal/). C++ (so fast), Linux (AFAIK). * [gournal](http://www.adebenham.com/gournal/). Gtk2-Perl, Linux (AFAIK). I've used both xournal and jarnal and found them great tools for just this purpose.
36
https://tex.stackexchange.com/users/86
1528
1,067
https://tex.stackexchange.com/questions/1395
11
I really like the protrusion and margin kerning features of pdfTeX and LuaTeX. I also like to use other fonts than those available for TeX. What choices do I have when I want to use both? Also, what problems with typography should I expect?
https://tex.stackexchange.com/users/628
What possibilities are there of using OpenType fonts and margin kerning?
true
This is for lualatex: ``` \documentclass{article} \usepackage{fontspec} \setmainfont[RawFeature={protrusion=default}]{TeX Gyre Pagella} \pdfprotrudechars2 % 1 if you don't want to change line breaking \begin{document} \input{knuth} \end{document} ```
6
https://tex.stackexchange.com/users/729
1529
1,068
https://tex.stackexchange.com/questions/1515
10
I have been experimenting with a setup for slides and handouts with one main.tex file that is `\input{}` into a "slides" and a "handout" file (as described in the beamer user guide 21.2.1, or [this example](http://happymutant.com/latex/misce/beamer.php). This setup allows the handout to be typeset using different documentclasses (i.e. report, article - which I am able to produce). However, I have been trying to use the tufte-handout class, but the compilation comes to a halt, without giving any particular error messages. I noticed the compilation halted on `amsthm` so I used the `[noamsthm]{beamerarticle}` class option. Then the compilation halted on `beamerbasetheorems.sty`so I used `[notheorems]{beamerarticle}` in the class option, but then it once again halted on `amsthm`. I then tried to give both in the class options (i.e. `[notheorems,noamsthm]{beamerarticle}`), but this appears to ignore the `[notheorems]{beamerarticle}` option resulting in the same error message as when only giving the `[noamsthm]{beamerarticle}` option. So, my question is, has anyone successfully used this setup to produce beamer slides and handouts using the tufte-handout class? Minimal examples provided as requested: File1 (slides.tex): ``` \documentclass[ignorenonframetext]{beamer} \input{main.tex} ``` File2 (handout.tex): ``` \documentclass{article} % This class works %\documentclass{tufte-handout} % Whish to use this documentclass \usepackage{beamerarticle} \input{main.tex} ``` File3 (main.tex): ``` \usetheme{Singapore} \title{Title here} \author{Some author} \date{} \begin{document} \maketitle \begin{frame} \titlepage \end{frame} \section{One section} \begin{frame} \frametitle{One frame} \end{frame} Text out of frame. Should print on handout only. \end{document} ```
https://tex.stackexchange.com/users/237
Beamer slides and tufte-handout
false
The problem appears to be related to the `\title` command. When I compile a document using `\title` then it hangs, and when I compile it without then it works just fine. There's a bit of a tangled web of definitions and redefinitions going on that is a bit hard to track. One method that worked for me was to copy out the (re)definition of `\title` from `tufte-common.def` and stick it in after the call to `beamerarticle`. Thus my main file looks like this: ``` \documentclass{tufte-handout} \usepackage{beamerarticle} \makeatletter \renewcommand{\title}[2][]{% \gdef\@title{#2}% \begingroup% % TODO store contents of \thanks command \renewcommand{\thanks}[1]{}% swallow \thanks contents \protected@xdef\thanklesstitle{#2}% \endgroup% \ifthenelse{\isempty{#1}}% {\renewcommand{\plaintitle}{\thanklesstitle}}% use thankless title {\renewcommand{\plaintitle}{#1}}% use provided plain-text title \@ifpackageloaded{hyperref}{\hypersetup{pdftitle={\plaintitle}}}{}% set the PDF metadata title } \makeatother \input{tufteMain} ``` Of course, that means that the title doesn't get "beamerified", but as this is only for the article version, that doesn't matter. I tried storing the old definition of `\title` before calling `beamerarticle` and resetting it afterwards, but that didn't work: ``` \documentclass{tufte-handout} \let\tufteTitle=\title \usepackage{beamerarticle} \let\title=\tufteTitle \input{tufteMain} ``` still hung. In general, TeX hangs like that when it enters an infinite loop, so my *guess* is that somehow the definition and redefinition of `\title` mean that it ends up calling itself again and again. Also, when TeX enters an infinite loop then the logfile contains the last thing that it did okay, so removing stuff that has appeared in the logfile isn't an optimal strategy (you *may* happen on whatever it was that created the loop, but there's no guarantee).
9
https://tex.stackexchange.com/users/86
1530
1,069
https://tex.stackexchange.com/questions/1507
18
I'm working on a document that has been published only as a PDF file until now. To utilize some of PDF's features, it uses the packages `pdfpages` and `pdftex` and commands like `includepdf{}`. But soon that document shall be available in both PDF an HTML format. I figured out I can use `htlatex` / `tex4ht` to convert it, but it seems that this tool is not compatible with the special pdf features and packages. Once I remove them, it works. Removing the pdf stuff, converting to html and then putting it in again manually is not an option *(This is an evolving document that has been worked on for over 10 years by a large number of contributors and is still edited by several people, so we rely on an automated build process using `make`)*. Is there any way similar to *conditional compilation* to ignore some `\usepackage` directives on some of the make runs, or do you have any other hint on how to do this?
https://tex.stackexchange.com/users/717
How to create PDF and HTML output from the same source
false
Here's my main suggestion: use version control and have a branch for XHTML+MathML[1] and a branch for PDF. Let the version control system keep track of the changes and leave you to concentrate on making sure that both look as good as they can for the desired output. Other possibilities spring to mind: as it's quite easy to go from XHTML to PDF (File->Print->Print\_to\_File!), concentrate on the XHTML version and leave the PDF to the reader. And, slightly tongue-in-cheek, I'd consider adding a "don't do that" tag to this question (if it wasn't already at the maximum). The requirements for a document to be viewed on the screen are sufficiently different to that to be printed out that it's worth considering having two almost completely separate documents. (NB I know that PDFs are often viewed on the screen, but I'm thinking more about the interaction possible between reader and document that is possible with an XHTML document and is difficult with PDF.) [1] I know you *wrote* HTML, but you *meant* XHTML+MathML.
0
https://tex.stackexchange.com/users/86
1531
1,070
https://tex.stackexchange.com/questions/669
45
I know that I can put `\usepackage{times}` in the preamble in order to use the Times font instead of Computer Modern for my document. But this only affects the text; the math is still typeset using Computer Modern. How can I make Latex use Times also for the math?
https://tex.stackexchange.com/users/35
How do I make my document use the Times font, both for the text and the math?
false
If you don't mind using a Times-like font, a different engine, and the not yet officially released TeXLive-2010, then you can try XITS font with LuaLaTeX (my preference) or XeLaTeX: ``` \documentclass{article} \usepackage{fontspec} \usepackage{unicode-math} \setmainfont{XITS} % you can use any other Times font if you wish \setmathfont{XITS Math} \begin{document} Some text and \(\sqrt{x+y}=z\) equation \end{document} ```
9
https://tex.stackexchange.com/users/729
1533
1,071
https://tex.stackexchange.com/questions/1534
3
> > **Possible Duplicate:** > > [LaTeX template for resume/curriculum vitae](https://tex.stackexchange.com/questions/80/latex-template-for-resume-curriculum-vitae) > > > I'm going to make a CV of my own and I wonder wether there are some other packages focused on CV making except the `moderncv` package?
https://tex.stackexchange.com/users/524
Are there any other packages defined to create a CV except the "moderncv" package?
false
Yes, there are. Have a look at that category in the TeX Catalogue: * [Writing Applications for a Job / CV](http://texcatalogue.sarovar.org/bytopic.html#applications) By the way: I wasn't satisfied by the results of such packages. So, I used scrartcl and tabularx to typeset my CV. This way I could match it to the design of my application letter done with scrlttr2. I used tabularx in macros, allowing easy adjustments for all parts of the CV at once. Simple and elegant, no fancy colored lines and the like.
1
https://tex.stackexchange.com/users/213
1535
1,072
https://tex.stackexchange.com/questions/669
45
I know that I can put `\usepackage{times}` in the preamble in order to use the Times font instead of Computer Modern for my document. But this only affects the text; the math is still typeset using Computer Modern. How can I make Latex use Times also for the math?
https://tex.stackexchange.com/users/35
How do I make my document use the Times font, both for the text and the math?
false
I’ve been using the **txfontsb** package for Times, though generally I avoid Times. (After reading countless student papers in Times, it grates on me.)
4
https://tex.stackexchange.com/users/411
1536
1,073
https://tex.stackexchange.com/questions/1515
10
I have been experimenting with a setup for slides and handouts with one main.tex file that is `\input{}` into a "slides" and a "handout" file (as described in the beamer user guide 21.2.1, or [this example](http://happymutant.com/latex/misce/beamer.php). This setup allows the handout to be typeset using different documentclasses (i.e. report, article - which I am able to produce). However, I have been trying to use the tufte-handout class, but the compilation comes to a halt, without giving any particular error messages. I noticed the compilation halted on `amsthm` so I used the `[noamsthm]{beamerarticle}` class option. Then the compilation halted on `beamerbasetheorems.sty`so I used `[notheorems]{beamerarticle}` in the class option, but then it once again halted on `amsthm`. I then tried to give both in the class options (i.e. `[notheorems,noamsthm]{beamerarticle}`), but this appears to ignore the `[notheorems]{beamerarticle}` option resulting in the same error message as when only giving the `[noamsthm]{beamerarticle}` option. So, my question is, has anyone successfully used this setup to produce beamer slides and handouts using the tufte-handout class? Minimal examples provided as requested: File1 (slides.tex): ``` \documentclass[ignorenonframetext]{beamer} \input{main.tex} ``` File2 (handout.tex): ``` \documentclass{article} % This class works %\documentclass{tufte-handout} % Whish to use this documentclass \usepackage{beamerarticle} \input{main.tex} ``` File3 (main.tex): ``` \usetheme{Singapore} \title{Title here} \author{Some author} \date{} \begin{document} \maketitle \begin{frame} \titlepage \end{frame} \section{One section} \begin{frame} \frametitle{One frame} \end{frame} Text out of frame. Should print on handout only. \end{document} ```
https://tex.stackexchange.com/users/237
Beamer slides and tufte-handout
true
The answer provided by [Andrew Stacey](https://tex.stackexchange.com/users/86/andrew-stacey) includes copying style definitions from tufte-common.def into the main.tex file. The following works fine: ``` \documentclass{tufte-handout} \usepackage{beamerarticle} \makeatletter \renewcommand{\title}[2][]{% \gdef\@title{#2}% \begingroup% % TODO store contents of \thanks command \renewcommand{\thanks}[1]{}% swallow \thanks contents \protected@xdef\thanklesstitle{#2}% \endgroup% \ifthenelse{\isempty{#1}}% {\renewcommand{\plaintitle}{\thanklesstitle}}% use thankless title {\renewcommand{\plaintitle}{#1}}% use provided plain-text title \@ifpackageloaded{hyperref}{\hypersetup{pdftitle={\plaintitle}}}{}% set the PDF metadata title } \makeatother \makeatletter \renewcommand*{\author}[2][]{% \gdef\@author{#2}% \begingroup% % TODO store contents of \thanks command \renewcommand{\thanks}[1]{}% swallow \thanks contents \protected@xdef\thanklessauthor{#2}% \endgroup% \ifthenelse{\isempty{#1}} {\renewcommand{\plainauthor}{\thanklessauthor}}% use thankless author {\renewcommand{\plainauthor}{#1}}% use provided plain-text author \@ifpackageloaded{hyperref}{\hypersetup{pdfauthor={\plainauthor}}}{}% set the PDF metadata author } \makeatother \input{main.tex} ```
3
https://tex.stackexchange.com/users/237
1538
1,074
https://tex.stackexchange.com/questions/1507
18
I'm working on a document that has been published only as a PDF file until now. To utilize some of PDF's features, it uses the packages `pdfpages` and `pdftex` and commands like `includepdf{}`. But soon that document shall be available in both PDF an HTML format. I figured out I can use `htlatex` / `tex4ht` to convert it, but it seems that this tool is not compatible with the special pdf features and packages. Once I remove them, it works. Removing the pdf stuff, converting to html and then putting it in again manually is not an option *(This is an evolving document that has been worked on for over 10 years by a large number of contributors and is still edited by several people, so we rely on an automated build process using `make`)*. Is there any way similar to *conditional compilation* to ignore some `\usepackage` directives on some of the make runs, or do you have any other hint on how to do this?
https://tex.stackexchange.com/users/717
How to create PDF and HTML output from the same source
false
Since the text is mainly prose + floats, you can consider writing your source in markdown and convert it to html and latex/context using [pandoc](http://johnmacfarlane.net/pandoc/), which does a fairly good job of creating predictable output.
3
https://tex.stackexchange.com/users/323
1539
1,075
https://tex.stackexchange.com/questions/1537
23
Any idea why `yshift` doesn't work in the following TikZ example? ``` \documentclass{minimal} \usepackage{tikz} \begin{document} \begin{tikzpicture} \coordinate (A) at (0,0); \coordinate (B) at (2.5,0); \draw (A) -- (B); \draw[yshift=2cm] (A) -- (B); \end{tikzpicture} \end{document} ```
https://tex.stackexchange.com/users/337
Why yshift doesn't work in this TikZ example?
true
It would work with coordinates or if you place the yshift inside the parentheses next to the name A and B: ``` \documentclass{minimal} \usepackage{tikz} \begin{document} \begin{tikzpicture} \coordinate (A) at (0,0); \coordinate (B) at (2.5,0); \draw (A) -- (B); \draw ([yshift=2cm]A) -- ([yshift=2cm]B); \end{tikzpicture} \end{document} ``` Output:
28
https://tex.stackexchange.com/users/213
1540
1,076
https://tex.stackexchange.com/questions/1537
23
Any idea why `yshift` doesn't work in the following TikZ example? ``` \documentclass{minimal} \usepackage{tikz} \begin{document} \begin{tikzpicture} \coordinate (A) at (0,0); \coordinate (B) at (2.5,0); \draw (A) -- (B); \draw[yshift=2cm] (A) -- (B); \end{tikzpicture} \end{document} ```
https://tex.stackexchange.com/users/337
Why yshift doesn't work in this TikZ example?
false
`yshift` (and similar commands) are applied to all coordinates in the path, not to the path as a whole. They are also not applied to anchors: according to the TikZ manual (section 15.11. in the 2.0 version): > > Once the node x has been defined, you > can use (x. anchor ) wherever you > would normally use a normal > coordinate. This will yield the > position at which the given anchor is > in the picture. Note that > transformations do not apply to this > coordinate, that is, (x.north) will be > the northern anchor of x even if you > have said scale=3 or xshift=4cm. This > is usually what you would expect. > > >
7
https://tex.stackexchange.com/users/83
1541
1,077
https://tex.stackexchange.com/questions/80
562
If you have a TeX'ed resume, did you use a template or make your own? Are there any useful packages? What looks the most professional? How about special considerations for different areas of work (e.g. in academia)?
https://tex.stackexchange.com/users/8
LaTeX template for resume/curriculum vitae
false
The TeX Catalogue list CV packages in a category: * [Writing Applications for a Job / CV](http://dante.ctan.org/tex-archive/obsolete/help/Catalogue/bytopic.html#applications) By the way: I wasn't satisfied by the results of such packages. So, I used scrartcl and tabularx to typeset my CV. This way I could match it to the design of my application letter done with scrlttr2. I used tabularx in macros, allowing easy adjustments for all parts of the CV at once. Simple and elegant, no fancy colored lines and the like. *Copied from [here](https://tex.stackexchange.com/questions/1534/are-there-any-other-packages-defined-to-create-a-cv-except-the-moderncv-package) to this topic following a request.* **EDIT:** The original link to the TeX Catalogue was dead. The TeX Catalogue might be superseded by <https://ctan.org/topics/highscore>, especially <https://ctan.org/topic/cv> for CV.
33
https://tex.stackexchange.com/users/213
1542
1,078
https://tex.stackexchange.com/questions/1544
24
For instance, in Welsh the alphabet starts a, b, c, ch, d, dd, etc. Is there a way to automatically alter the ordering of lists to match this?
https://tex.stackexchange.com/users/106
How can I change the order of an alphabetic enumeration?
true
You could define a command for this purpose. Use that command in defining the label. Here's an example: ``` \documentclass{article} \makeatletter \newcommand*\welsh[1]{% \ifcase#1\or a\or b\or c\or ch\or d\or dd\or ... \else\@ctrerr\fi} \newcommand*\Welsh[1]{% \ifcase#1\or A\or B\or C\or ... \else\@ctrerr\fi} \makeatother \renewcommand*{\theenumi}{\welsh{\value{enumi}}} \renewcommand*{\labelenumi}{(\theenumi)} \begin{document} \begin{enumerate} \item One \item Two \item Three \item Four \item Five \item Six \end{enumerate} \end{document} ``` Output:
22
https://tex.stackexchange.com/users/213
1545
1,079
https://tex.stackexchange.com/questions/1532
4
I'm tired of manually creating the tarfiles I need for uploading articles to the [arxiv](http://arxiv.org). The process involves creating a tarfile of all the (non-standard) source files. So naturally it needs the .tex file(s), the .pdf files, the .bbl file and perhaps an .idx if you have an index (perhaps something else?). I usually keep my figures in a subdirectory under the one where the .tex file lives, so the tar file would have to keep that directory structure. What I usually do is compile with `\listfiles` then manually grab the list of files from the output, stick them in `<filelist>` together with the name of the main .tex file and then run `tar c -T<filelist> -f<output.tar>`. Not a huge operation, but it would be nice to automate since I usually forget the required switches by the time I need to upload another article to the arxiv.... I looked online and found [unlog.sh](http://arxiv.org/archive/cs/unlog.html) on the arxiv itself, but it specifically states that it is not designed for the output of pdflatex. When I tried to modify it for the output of the pdflatex, indeed I didn't manage, but this might be due to my lacking perl skills, and not for any good reason. Does anyone know of a nice script for creating the required tarfiles for the arxiv, or is interested in modifying unlog.sh so that it works properly on pdflatex log files?
https://tex.stackexchange.com/users/117
is there an unlog.sh script for pdflatex?
true
With some *basic* testing, the following works for me. Copy it to a file, say `unlog.pl`, and save it somewhere on your path. Either make it executable or invoke it via `perl unlog.pl logfile tarfile`. It goes through the logfile looking for suitable files (much as the original script did). I modified the search pattern to pick up included graphics (these seemed to be signalled by angular brackets in the logfile) and added `.pdf` to the extensions (others can easily be added). It builds the tar file out of those files that are *below* the user's home directory on the supposition that those are the unusual ones. Those that are below the *current* directory are added with directories (relative to the current directory), those that aren't are stripped of leading directories. The logic there being that if it's below the current directory it's probably special to this file and is probably included via `\includegraphics{relative/path/to/file}` so the relative path is important. If it's not below the current directory then it's probably included via something like `\usepackage{style}` so putting it in without any directory should work. ``` #!/usr/bin/perl use strict; use Cwd qw/abs_path getcwd/; use Archive::Tar; die "unlog logfile output-file" unless $#ARGV == 1; my ($logfile,$tarfile) = @ARGV; if (!($logfile =~ /\.log$/)) { $logfile .= ".log"; } open(LOGFILE,"$logfile") or die "cannot read $logfile"; my $tar = Archive::Tar->new(); my $cwd = getcwd(); my %tarfiles; while (<LOGFILE>) { while (/[\(|<](\S*\.(bbl|tex|sty|cls|e?ps|tib|ttz|ttx|pdf))\b/g) { print "found $1: "; # Convert relative directories to absolute in the tar args: my $x=abs_path($1); if (exists($tarfiles{$x})){ print "already in, skipping\n"; next; } $tarfiles{$x} = 1; if ($x =~ m/^$ENV{HOME}/) { # Only add files that are within our home directory if ($x =~ s#^$cwd/##) { # Subdirectories of _this_ one get preserved print "adding to tar, preserving directory\n"; $tar->add_files($x); } else { # Probably within our own texmf tree, so add it to the list # but strip off any leading directories my ($dir,$name) = ($x =~ m/(.*\/)?([^\/]*)/); print "adding to tar, no leading directory\n"; chdir($dir); $tar->add_files($name); chdir($cwd); } } else { # Otherwise, do nothing as it's probably in the global texmf tree print "omitting\n"; } } } $tar->write($tarfile); ```
2
https://tex.stackexchange.com/users/86
1546
1,080
https://tex.stackexchange.com/questions/1547
18
I'm working in a project ([Ubuntu Manual](http://ubuntu-manual.org/), if you're curious) which requires TeX to create a PDF document. But when we have almost all translated, I've found that there wasn't an hyphenation pattern for my language (Asturian). Actually, there isn't almost anything. `:)` So, I started creating a new one, which involved some hard mining in obscure Internet dungeons to get some documentation on how to do that. `;)` My approach is creating a list of hyphenated words (etymological when I'm 100% sure, syllabic else) from our [Aspell](http://aspell.net/) word list. When I've got a decent list, I'll use a hyphenation generator (I can't remember the actual name of the script) to have the Asturian hyphenation file, then I'll try and install under my TeX Live installation to test it, and then I'll upload it to TeX repositories. No, [OpenOffice.org](http://www.openoffice.org/) hyphenation is not an option (it still doesn't exist). My question is this: *Is there anything else I'm missing to have a working hyphenation for my language? Am I fully wrong and that won't work?* Thank you in advance.
https://tex.stackexchange.com/users/733
New language - hyphenation
true
The standard way to generate hyphenation patterns is to use PatGen. There is a TUGboat article about custom pattern generation: [Hyphenation on Demand](http://www.tug.org/TUGboat/Articles/tb20-3/tb64sojka.pdf) and there is a [PatGen2 tutorial on CTAN](http://tug.ctan.org/tex-archive/info/patgen2/patgen2.pdf).
12
https://tex.stackexchange.com/users/565
1549
1,081
https://tex.stackexchange.com/questions/1548
35
I'm not sure whether this is an appropriate question for tex.SE. If you think questions like this should not be asked here, please voice you concern. If necessary I'll open a question on meta. For readability I like to keep line lengths in my source files at about 80 characters. Vim has the nice shortcut `gqap` that reflows the current paragraph to fit within 80 characters without wasting space with lines that are too short. It even keeps indentation. Unfortunately it considers paragraphs to be marked by empty lines and considers everything that is not separated by an empty line to be in the same paragraph. In particular any equations (started with `\[` or `\begin{...}`) are always considered to be part of the paragraph and reflowed. Is there any way to have vim handle LaTeX syntax more intelligently in this respect? Are there any other text editors which can to that? (I know that I can highlight only the text and then use `gq`, but if possible I'd like to have a single command to reflow a paragraph without the need to manually mark what a paragraph is.)
https://tex.stackexchange.com/users/83
Intelligent paragraph reflowing in vim?
true
I have the following function in my `$VIM/ftplugin/context.vim` file to format ConTeXt paragraphs (same as LaTeX: the environments are enclosed in `\start...` and `\stop...` instead of `\begin{...}` and \end{...}. It should be easy to adapt this to LaTeX (In fact, I think that I copied it originally from someone who had written it for LaTeX and adapted it to ConTeXt). ``` " Reformat lines (getting the spacing correct) {{{ fun! TeX_fmt() if (getline(".") != "") let save_cursor = getpos(".") let op_wrapscan = &wrapscan set nowrapscan let par_begin = '^\(%D\)\=\s*\($\|\\start\|\\stop\|\\Start\|\\Stop\|\\\(sub\)*section\>\|\\item\>\|\\NC\>\|\\blank\>\|\\noindent\>\)' let par_end = '^\(%D\)\=\s*\($\|\\start\|\\stop\|\\Start\|\\Stop\|\\place\|\\\(sub\)*section\>\|\\item\>\|\\NC\>\|\\blank\>\)' try exe '?'.par_begin.'?+' catch /E384/ 1 endtry norm V try exe '/'.par_end.'/-' catch /E385/ $ endtry norm gq let &wrapscan = op_wrapscan call setpos('.', save_cursor) endif endfun nmap Q :call TeX_fmt()<CR> ```
24
https://tex.stackexchange.com/users/323
1550
1,082
https://tex.stackexchange.com/questions/1551
268
I'm asking here a question which was asked on the Italian TeX group forum. Is there a way to produce ePub output automatically from a LaTeX source? I should remark that ePub is just HTML + a subset of CSS + some XML for metadata, packed in a ZIP file. So one can settle with the existing tools for HTML conversion. Still something better could be done for ePub output. In the first place, ePub accepts only a subset of CSS, then it would be nice to produce the file with the metadata from the LaTeX source too. Finally, I'm not sure how it works, but ePub files allow for automatic hyphenation of words. By this I mean that hyphenation can be specified in the ePub file itself, so that a reader will not need to know hyphenation rules. Note that since ePub files are resizable, all possible points of hyphenation must be specified.
https://tex.stackexchange.com/users/260
Use LaTeX to produce ePub
false
I’ve never tried to automate this, but I would think that a script that generates HTML from the TeX source, and then passes that HTML to [Calibre](http://www.calibre-ebook.com/)’s [ebook-convert](http://calibre-ebook.com/user_manual/cli/ebook-convert.html) command line program would be sufficient. You could use TeX4t or similar for the first step. Do any ePub viewers support hyphenation, even when specified? Most ePub software is based on Adobe Digital Editions, and last I heard, [it chokes on this](http://www.mobileread.com/forums/showthread.php?t=28139). I doubt iBooks is any better.
34
https://tex.stackexchange.com/users/411
1552
1,083
https://tex.stackexchange.com/questions/1554
174
I'm using the [`biblatex`](https://ctan.org/pkg/biblatex) package to add citations and a bibliography to my LaTeX document. I've noticed that only the first author plus "et al." is displayed for works with more than three authors. That's fine with me for in-text-citations, but I'd rather have the complete author information in the bibliography. How can I do that?
https://tex.stackexchange.com/users/510
biblatex: displaying all authors of multi-author works in the bibliography
false
Check the option `maxnames` and set it to a large value.
2
https://tex.stackexchange.com/users/337
1555
1,084
https://tex.stackexchange.com/questions/1554
174
I'm using the [`biblatex`](https://ctan.org/pkg/biblatex) package to add citations and a bibliography to my LaTeX document. I've noticed that only the first author plus "et al." is displayed for works with more than three authors. That's fine with me for in-text-citations, but I'd rather have the complete author information in the bibliography. How can I do that?
https://tex.stackexchange.com/users/510
biblatex: displaying all authors of multi-author works in the bibliography
true
### UPDATE Simply set the package option `maxbibnames=99` in the preamble. ``` \usepackage[maxbibnames=99]{biblatex} ``` There are also other options: * `minalphanames`: the minimum number of alphabetic authors to be displayed. * `minbibnames`: the minimum number of authors displayed in bibliography. * `mincitenames`: the minimum number of authors displayed in citations. * `minnames`: sets both `minbibnames` and `mincitenames` * `maxalphanames`: the maximum number of alphabetic authors to be displayed. * `maxbibnames`: the maximum number of authors displayed in bibliography. * `maxcitenames`: the maximum number of authors displayed in citations. * `maxnames`: sets both `maxbibnames` and `maxcitenames`. Default value is `3`. ### Notes `biblatex` 1.1, which was released on January 5th, 2011, introduced the options `maxbibnames`, `minbibnames`, `maxcitenames` and `mincitenames` (settable in the document preamble and in the configuration file `biblatex.cfg`). `biblatex` 1.6, which was released on July 29th, 2011, *"removed the local max/minnames and max/minitems options from `\printbibliography` and friends to enforce consistency. Please use the global options instead."* (Release notes) --- ### ORIGINAL ANSWER: The maximum number of displayed authors - both for in-text-citations and the bibliography - is controlled by the option `maxnames` (with a default value of 3). To show all authors only in the bibliography, don't change the value of `maxnames` in the document preamble, but use the optional argument of `\printbibliography` instead: Type ``` \printbibliography[maxnames=99] ``` at the place in your document where you want the bibliography to appear. If you want all bibliographies (and lists of shorthands) in all your LaTeX documents to display the complete author information, instead of typing `[maxnames=99]` every time, you can add the following code to the configuration file `biblatex.cfg`: ``` \newcounter{bibmaxnames} \setcounter{bibmaxnames}{99} \patchcmd{\blx@printbibliography}{#1}{#1,maxnames=\thebibmaxnames}{}{} \patchcmd{\blx@bibbysection}{#1}{#1,maxnames=\thebibmaxnames}{}{} \patchcmd{\blx@bibbysegment}{#1}{#1,maxnames=\thebibmaxnames}{}{} \patchcmd{\blx@bibbycategory}{#1}{#1,maxnames=\thebibmaxnames}{}{} \patchcmd{\blx@printshorthands}{#1}{#1,maxnames=\thebibmaxnames}{}{} ``` Note that is a hack which uses internal `biblatex` commands and hopefully will be replaced by a proper package option in a later version of `biblatex` (the current version is 0.9b). (`\patchcmd` derives from the [`etoolbox`](http://www.ctan.org/tex-archive/help/Catalogue/entries/etoolbox.html) package, which is loaded automatically by `biblatex`.)
224
https://tex.stackexchange.com/users/510
1557
1,086
https://tex.stackexchange.com/questions/70
105
I've heard that with LuaTeX, you can embed Lua code in your document that work directly with TeX internals, making it possible to do several things that are hard to do with macros. What is a good specific example of stuff that you can accomplish easily with LuaTeX? (I see [here](http://www.danielstender.com/granthinam/506/) that LuaLaTeX is already available on Debian testing, and you can write documents like: ``` \documentclass{article} \usepackage{luacode} \begin{document} A random number: \begin{luacode} tex.print(math.random()) \end{luacode} \end{document} ``` resulting in something like ``` A random number: 0.135494265234 ``` so I expect that other useful nontrivial things are possible.)
https://tex.stackexchange.com/users/48
What is a simple example of something you can do with LuaTeX?
false
Triggered by the Epub question: here is something useful you can easily do with luatex: ``` {\catcode`\#=12 \directlua { local words = io.open('hyphens-' .. tex.jobname .. '.txt', 'w'); local outchar = unicode.utf8.char local function dumphyphens (head) local data = {} for v in node.traverse(head) do if v.id == node.id('glyph') then data[#data+1] = outchar(v.char); elseif v.id == node.id('disc') then data[#data+1] = '-' elseif v.id == node.id('glue') then data[#data+1] = outchar(32) elseif v.id == node.id('hlist') then data[#data+1] = dumphyphens(v.list) end end return table.concat(data) end callback.register ('hyphenate', function (head,tail) lang.hyphenate(head, tail) words:write (dumphyphens(head) .. outchar(10)) end) }} \input knuth \bye ``` This will write to hyphens-\jobname.txt a dump of all the characters that luatex has been asked to add hyphenation points to from this point on in the source, with the output of each callback call on a single line. Although you cannot use this to generate Epub (mostly because macros like \TeX create two lines of output, once 'E' only for the lowered hbox and once 'TEX' for the actual macro use) the output is still useful because you can check to make sure there are no potential bad breaks allowed by the hyphenation patterns you are using.
19
https://tex.stackexchange.com/users/89
1558
1,087
https://tex.stackexchange.com/questions/1560
0
> > **Possible Duplicate:** > > [What packages do people load by default in LaTeX?](https://tex.stackexchange.com/questions/553/what-packages-do-people-load-by-default-in-latex) > > > As subject. What are the most popular LaTeX packages?
https://tex.stackexchange.com/users/176
What are the most popular LaTeX packages?
false
For papers on the [arXiv](http://www.arxiv.org) (maths, physics and computer science mostly) there's a [list of packages sorted by frequency of use](http://arxmliv.kwarc.info/package_usage.php). The top twenty packages are: 1. `article` 2. `graphicx` 3. `amssymb` 4. `amsmath` 5. `revtex` 6. `revtex4` 7. `epsfig` 8. `amsfonts` 9. `bm` 10. `latexsym` 11. `amsart` 12. `dcolumn` 13. `amsthm` 14. `graphics` 15. `aastex` 16. `amscd` 17. `epsf` 18. `color` 19. `aa` 20. `times`
4
https://tex.stackexchange.com/users/176
1562
1,089
https://tex.stackexchange.com/questions/158
36
Occasionally, I write letters that I actually print out and send by snail mail :). I'd like them to look as formal as possible. Archaic (pre-typewriter) Dutch customs require the sender's address to be in the top left corner and the recipient's in the top right. The place and date should be aligned with the recipient's address. The sign off ("Yours truly") should also be aligned with that. Of course there are also specific rules for the amount of vertical whitespace. Does anyone know of a good package that lets me customize all this stuff, preferably in a .sty file or something that I can include, so I don't have to do it again for every letter?
https://tex.stackexchange.com/users/116
Anyone know a good template for formal letters?
false
Most sites point to the options below for **formal letters**: * [akletter](http://www.ctan.org/tex-archive/macros/latex/contrib/akletter/) for German business letters; * [newlfm](http://www.ctan.org/tex-archive/macros/latex/contrib/newlfm/) for US-centric letters, faxes and memos; * [dinbrief](http://www.ctan.org/tex-archive/macros/latex/contrib/dinbrief/) for German letters; * [brief](http://www.ctan.org/tex-archive/macros/latex/contrib/ntgclass/) in the Dutch ntgclass bundle; * [scrlttr2](http://www.komascript.de/) in the KOMA-Script bundle. Here is my .tex code for a formal **letter** or an **invoice** based on scrlttr2 [(part of KOMA-script)](http://www.komascript.de/). I found the package flexible enough for my needs. ``` \documentclass[brief]{scrlttr2} \setkomavar{yourref}{Microspino \\Address XX } \setkomavar{yourmail}{mail@microspino.com} \setkomavar{myref}{Your Refn. XXX} \setkomavar{customer}{Client Name \\ Comapny name} \setkomavar{invoice}{VAT NUMBER \\ IBAN} \setkomavar{date}{\today} \setkomavar{subject}{The very true reason I'm writing this thing} \begin{document} \begin{letter} {FirstNameTO LastNameTO\\ Address. XX\\ 00100 Siena, Italy } \opening{Your majesty,} Bla bla bla .... \closing{All the best,} \end{letter} \end{document} ``` I'd like to add another tex letter source with a logo on the top-left and rulers, based on `newlfm` **Remember to put a logo.pdf in the same folder of it** otherwise it will complain: ``` \documentclass[10pt,stdletter]{newlfm} \usepackage{charter} \widowpenalty=1000 \clubpenalty=1000 \newsavebox{\Luiuc} \sbox{\Luiuc}{% \parbox[b]{1.75in}{% \vspace{0.5in}% \includegraphics[scale=1.0,ext=.pdf] {logo.pdf}% }% }% \makeletterhead{Uiuc}{\Lheader{\usebox{\Luiuc}}} \newlfmP{headermarginskip=20pt} \newlfmP{sigsize=50pt} \newlfmP{dateskipafter=20pt} \newlfmP{addrfromphone} \newlfmP{addrfromemail} \PhrPhone{Phone} \PhrEmail{Email} \lthUiuc \namefrom{Daniele Spinosa} \addrfrom{% Polyfunctional Laboratory\\ Casal dei Pazzi\\ Siena, SI Italy 53100 } \phonefrom{000-000-0000} \emailfrom{nnnn@nnn.edu} \addrto{% Faculty of Somewhere\\ Department of Null and Nothing\\ Vacuum University\\ NoLand, XX 0000-0000} \greetto{To Whom It May Concern,} \closeline{Sincerely,} \begin{document} \begin{newlfm} Let's talk about Italian developers...\\ Let's assume they are talented...\\ Let's assume they are skilled...\\ Let's assume they have a good government...\\ Ok Let's talk about real things. \end{newlfm} \end{document} ```
25
https://tex.stackexchange.com/users/633
1564
1,091
https://tex.stackexchange.com/questions/1565
7
To include MetaPost pictures in a latex file compiled by pdflatex I usually do something like ``` \usepackage[pdftex]{graphicx} ... \includegraphics{filename-without-mps} ``` but this requires all metapost output to have extension `.mps` (which is *usually* fine — one can just add the line `filenametemplate "%j-%c.mps";` into `.mp` source). Is there a way to include `mps` pictures with their usual filenames (`smth.1`, `smth.2`, etc.)? *Update:* I usually need it to recompile some old files with PDFLaTeX — so I need some recipe that adds couple of lines in the preamble but not requires to changes *everything*. --- I tried to invent some hack (for Windows, to be compiled with `pdflatex -enable-write18`): ``` \usepackage[pdftex]{graphics} \DeclareGraphicsRule{.1}{pdf}{.1.pdf}{`copy #1 #1.eps && epstopdf #1.eps} ... \includegraphics{smth.1} ``` which indeed generates `smth.1.pdf` but fails with the error ``` ! Package pdftex.def Error: File `smth-1-converted-to.1.pdf' not found. ``` *Update 2:* The question was answered but maybe someone knows how to make this hack work?
https://tex.stackexchange.com/users/85
MetaPost pictures in PDFLaTeX
false
Do you know that there's a package for encapsulating metapost figures in LaTeX? It's called [emp](http://ctan.org/pkg/emp).
5
https://tex.stackexchange.com/users/213
1566
1,092
https://tex.stackexchange.com/questions/553
461
I'm getting the impression from reading the answers written by some of the real experts here that there are quite a few little packages that just tweak LaTeX2e's default behaviour a little to make it more sensible here and there. Rather than try to pick these up one by one as I read answers to questions (and thus risk missing them), I thought I'd ask up front what LaTeX2e packages people load by default in (almost) every document. As this is a "big list" question, I'm making it CW. I don't know if there are standard rules across all SE/SO sites for such questions, but on MathOverflow the rule is generally: one thing (in this case, package) per answer. I guess that if a couple of packages really do go together then it would be fine to group them. This is perhaps a little subjective and a little close to the line, so I'll not be offended if it gets closed or voted down! (But *please* explain why in the comments.) Also see our community poll question: [“I have used the following packages / classes”](https://tex.meta.stackexchange.com/a/1574/ "TeX Community Polls")
https://tex.stackexchange.com/users/86
What packages do people load by default in LaTeX?
false
For papers on the [arXiv](http://www.arxiv.org) (maths, physics and computer science mostly) there's a [list of packages sorted by frequency of use](http://arxmliv.kwarc.info/package_usage.php). The top twenty packages are: 1. `article` 2. `graphicx` 3. `amssymb` 4. `amsmath` 5. `revtex` 6. `revtex4` 7. `epsfig` 8. `amsfonts` 9. `bm` 10. `latexsym` 11. `amsart` 12. `dcolumn` 13. `amsthm` 14. `graphics` 15. `aastex` 16. `amscd` 17. `epsf` 18. `color` 19. `aa` 20. `times`
60
https://tex.stackexchange.com/users/176
1567
1,093
https://tex.stackexchange.com/questions/479
92
The standard font used for `\mathcal` does not include any lowercase characters. The *Comprehensive LaTeX Symbols List* suggests redefining `\mathcal` to use Zapf Chancery. However I do not particularly like that font. For example the uppercase "I" is very hard do distinguish from the non-mathcal "I". Are there any good alternatives?
https://tex.stackexchange.com/users/83
Lowercase \mathcal
false
Think about meaning. Mathematical symbols are symbols used by mathematicians to carry a particular meaning (which may depend on the subject area). Unicode takes that point of view (more-or-less) by giving each distinct mathematical symbol its own code point. Typographically, a calligraphic **F** is an 'F' in a particular font, but mathematically it is mathematical symbol with its own meaning. Ordinarily Unicode does not care about the font, but for math symbols it does. In my experience, mathematicians don't use lower-case calligraphic symbols, and as far as I know there are no Unicode code points for them. Put another way, Knuth did not create lower-case mathematical calligraphic letters because mathematicians don't use them. As a mathematician, I don't see a sufficiently good reason to start using them.
-10
https://tex.stackexchange.com/users/176
1569
1,095
https://tex.stackexchange.com/questions/1565
7
To include MetaPost pictures in a latex file compiled by pdflatex I usually do something like ``` \usepackage[pdftex]{graphicx} ... \includegraphics{filename-without-mps} ``` but this requires all metapost output to have extension `.mps` (which is *usually* fine — one can just add the line `filenametemplate "%j-%c.mps";` into `.mp` source). Is there a way to include `mps` pictures with their usual filenames (`smth.1`, `smth.2`, etc.)? *Update:* I usually need it to recompile some old files with PDFLaTeX — so I need some recipe that adds couple of lines in the preamble but not requires to changes *everything*. --- I tried to invent some hack (for Windows, to be compiled with `pdflatex -enable-write18`): ``` \usepackage[pdftex]{graphics} \DeclareGraphicsRule{.1}{pdf}{.1.pdf}{`copy #1 #1.eps && epstopdf #1.eps} ... \includegraphics{smth.1} ``` which indeed generates `smth.1.pdf` but fails with the error ``` ! Package pdftex.def Error: File `smth-1-converted-to.1.pdf' not found. ``` *Update 2:* The question was answered but maybe someone knows how to make this hack work?
https://tex.stackexchange.com/users/85
MetaPost pictures in PDFLaTeX
true
Just do: ``` \DeclareGraphicsRule{.1}{mps}{*}{} \DeclareGraphicsRule{.2}{mps}{*}{} % etc. ```
8
https://tex.stackexchange.com/users/565
1572
1,098
https://tex.stackexchange.com/questions/1434
4
I have a string of inequalities, and somewhere in the middle I have two things which are equal. To fit this nicely on a single line, I would like to stack the equal things. So I wanted to do something like this (using the stackrel package): > > \[ A \leq \stackrel[B]{C}{\parallel} \leq D \] > > > However this makes B and C smaller. I can fix this with an even kludgier hack: > > \[ A \leq \stackrel[\text{\normalsize $B$}]{\text{\normalsize $C$}}{\parallel} \leq D \] > > > My question is: What the right way to do something like this? Edit: I would like something without a begin and end if possible.
https://tex.stackexchange.com/users/692
What is a good way to stack things in an equation?
true
I am going to avoid the topic of whether or not it is a good idea to do something like this and answer your specific question. Your problem is that `\stackrel` implicitly takes the `B` and `C` out of displaystyle. To fix this, you just need to explicitly tell it to typeset them in displaystyle: ``` \[ A \leq \stackrel[\displaystyle B]{\displaystyle C}{\parallel} \leq D \] ```
1
https://tex.stackexchange.com/users/737
1573
1,099
https://tex.stackexchange.com/questions/1492
157
I compile most of my documents via Makefiles which take care of the bibliography, indexes, etc. Often I'd like to compile different versions from the same TeX file changing only small things (e.g. a beamer presentation plus a version with the `handout` option). Is there any standard mechanism for passing parameters to the TeX file so that I can just type `make handout` to get the `handout` version in the above example?
https://tex.stackexchange.com/users/83
Passing parameters to a document
false
If you are using Rubber to compile your documents, the following solution seems to work very well: * Put almost everything in `main.tex`. * Create files like `slides.tex`, `handout.tex`, etc. These are short files contain the parts that are different between the two versions, followed by `\input{main}`. For example, they may contain `\documentclass` with different options. Or they may load a different set of packages. Or they may define the same macro in two different ways, etc. These files may also contain rubber directives in comments. * Then I can simply run `rubber -Wall slides.tex handout.tex` and I will have up-to-date versions of both `slides.pdf` and `handout.pdf`. Or just `rubber -Wall handout.tex` if I don't need the slides. You don't need to do any scripting or write complicated Makefiles. In many cases, you don't even need to use any `\if...` commands. Instead of defining a flag and doing something depending on the flag in `main.tex`, you can do the right thing directly in `slides.tex` and `handout.tex`. For example: * `slides.tex`: ``` \documentclass{beamer} \input{main} ``` * `handout.tex`: ``` \documentclass[handout]{beamer} \input{main} ``` You can also re-use these files in different projects; just drop in a different `main.tex`.
7
https://tex.stackexchange.com/users/100
1575
1,100
https://tex.stackexchange.com/questions/1574
212
I'm aware that it's possible to embed some kinds of videos and animations in LaTeX files (using the beamer or prosper classes) but I couldn't locate good documentation on this. My web searches returned a list of scattered forum questions and answers. Could anybody give a link to some help or documentation page that systematically deals with the various ways of embedding videos and animations, the file types that work, etc.?
https://tex.stackexchange.com/users/738
Embedding videos and animations
false
I'm personally only familiar with doing this in Beamer, which uses the `multimedia` package, distributed as part of Beamer itself. (Although it can be used in normal documents as well, independently from the rest of Beamer) The canonical reference on how to use the `multimedia` package is the [Beamer user's guide](http://www.ctan.org/tex-archive/macros/latex/contrib/beamer/doc/beameruserguide.pdf), section 14.1, but basically it boils down to using the command ``` \movie[options]{placeholder box}{movie filename} ``` The placeholder box is some text or other content (could be an image, for example) that determines the size at which the multimedia file is shown. The multimedia file can be shown either with an external viewer application, which launches when you click on the appropriate part of the PDF file, or directly in the PDF viewer itself. In both cases, though, this functionality is only supported by certain PDF viewers, mostly Adobe Reader. The file types it is able to display depend on the capabilities of the PDF viewer, or if using an external viewer, on which viewer program is being used. A quick search on CTAN turns up a possible alternative, [`media9`](https://www.ctan.org/pkg/media9) (which supersedes the old [`movie15`](https://www.ctan.org/pkg/movie15) package). According to the documentation, its main command is ``` \includemedia[options]{alt content}{media file} ``` and it seems to offer some of the same main features as Beamer's `multimedia`. However, I've never used this one myself so I can't say anything about it that isn't mentioned in the package documentation.
118
https://tex.stackexchange.com/users/125
1576
1,101
https://tex.stackexchange.com/questions/1574
212
I'm aware that it's possible to embed some kinds of videos and animations in LaTeX files (using the beamer or prosper classes) but I couldn't locate good documentation on this. My web searches returned a list of scattered forum questions and answers. Could anybody give a link to some help or documentation page that systematically deals with the various ways of embedding videos and animations, the file types that work, etc.?
https://tex.stackexchange.com/users/738
Embedding videos and animations
false
One possibility is to use the [animate](https://ctan.org/pkg/animate) package. There is a nice pile of examples showing `animate` usage over on [TeXample](http://www.texample.net/tikz/examples/tag/animations/).
10
https://tex.stackexchange.com/users/17
1577
1,102
https://tex.stackexchange.com/questions/1574
212
I'm aware that it's possible to embed some kinds of videos and animations in LaTeX files (using the beamer or prosper classes) but I couldn't locate good documentation on this. My web searches returned a list of scattered forum questions and answers. Could anybody give a link to some help or documentation page that systematically deals with the various ways of embedding videos and animations, the file types that work, etc.?
https://tex.stackexchange.com/users/738
Embedding videos and animations
false
The [flashmovie](http://ctan.org/pkg/flashmovie) package allows you to embed flash movies in pdfLaTeX documents. You need Acrobat Reader 9 to view the documents.
13
https://tex.stackexchange.com/users/565
1579
1,103
https://tex.stackexchange.com/questions/1580
18
I'm writing long equations with the split environment: ``` \begin{equation} \begin{split} ... \\ ... \\ ... \end{split} \end{equation} ``` The problem is that the single lines are a bit high, and there is too little vertical spacing, so that the result looks messy. Is there a way to increase the vertical space of the split environment?
https://tex.stackexchange.com/users/260
Increase spacing in split environment
false
The traditional way is ``` \begin{equation} \openup 1\jot \begin{split} ... \\ ... \\ ... \end{split} \end{equation} ``` **Edit**: From the definition in ltmath.dtx (which is copied directly from plain tex) ``` \def\openup{\afterassignment\@penup\dimen@} \def\@penup{\advance\lineskip\dimen@ \advance\baselineskip\dimen@ \advance\lineskiplimit\dimen@} ``` Ie, `\openup dimen` just increases the line spacing by dimen. Traditionally, `dimen` is given in units of `\jot`, which often set to 3 pt. It's all described in the TeXBook.
8
https://tex.stackexchange.com/users/627
1581
1,104
https://tex.stackexchange.com/questions/1580
18
I'm writing long equations with the split environment: ``` \begin{equation} \begin{split} ... \\ ... \\ ... \end{split} \end{equation} ``` The problem is that the single lines are a bit high, and there is too little vertical spacing, so that the result looks messy. Is there a way to increase the vertical space of the split environment?
https://tex.stackexchange.com/users/260
Increase spacing in split environment
true
The length `\jot` determines the space in a multi-line amsmath enironment. You could adjust it, affecting all lines or use the optional argument of `\\` to increase the spacing specifically. ``` \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} \setlength{\jot}{10pt} % affecting the line spacing in the environment \begin{split} 1 \\ 2 \\[3ex]% additional space affecting just this line 3 \end{split} \end{equation} \end{document} ``` Changing `\jot` inside the outer equation environment limits the scope of this action. But as it seems that you just want to adjust certain lines, using `\\` at this point should be sufficient.
16
https://tex.stackexchange.com/users/213
1582
1,105
https://tex.stackexchange.com/questions/1578
2
How do I modify a .bbl file to change the label which appears in my document when something is cited? Despite indicating in [this](https://stackoverflow.com/questions/1982075/is-there-a-way-to-override-a-bibtex-style-file-for-a-particular-entry) question that I know how to do this, I have forgotten and can't manage to google my way to an answer. Scott mentions in [this](https://tex.stackexchange.com/questions/102/can-one-manually-override-bibtexs-choice-of-citation-keys-by-adding-a-field-to/126#126) answer that thisis possible. EDIT: In response to some answers below, here is the typical entry of the .bbl file that bibtex produces: ``` \bib{abbotKR:picard}{article}{ author={Abbott, Timothy~G.}, author={Kedlaya, Kiran~S.}, author={Roe, David}, title={Bounding picard numbers of surfaces using p-adic cohomology}, date={2007Jan}, eprint={math/0601508}, url={http://arxiv.org/abs/math/0601508}, } ``` And `\bib[label]{abbotKR:picard}{article}{` gives me errors. I'm using `ucthesisnew.sty`, which is probably the cause of this problem.
https://tex.stackexchange.com/users/198
How do I modify a .bbl file to change the label which appears in my document when it is cited
false
What I understand from your question is that you want to change how something is cited. For example, change it from (1) to (Knuth, 2010). What you have to do is, in any place before the `\bibliography` command, put `\bibliographystyle{"some style here}`. You can find a comprehensive list of styles [here](http://amath.colorado.edu/documentation/LaTeX/reference/faq/bibstyles.pdf). Try also reading the `natbib` package documentation.
0
https://tex.stackexchange.com/users/401
1584
1,106
https://tex.stackexchange.com/questions/1578
2
How do I modify a .bbl file to change the label which appears in my document when something is cited? Despite indicating in [this](https://stackoverflow.com/questions/1982075/is-there-a-way-to-override-a-bibtex-style-file-for-a-particular-entry) question that I know how to do this, I have forgotten and can't manage to google my way to an answer. Scott mentions in [this](https://tex.stackexchange.com/questions/102/can-one-manually-override-bibtexs-choice-of-citation-keys-by-adding-a-field-to/126#126) answer that thisis possible. EDIT: In response to some answers below, here is the typical entry of the .bbl file that bibtex produces: ``` \bib{abbotKR:picard}{article}{ author={Abbott, Timothy~G.}, author={Kedlaya, Kiran~S.}, author={Roe, David}, title={Bounding picard numbers of surfaces using p-adic cohomology}, date={2007Jan}, eprint={math/0601508}, url={http://arxiv.org/abs/math/0601508}, } ``` And `\bib[label]{abbotKR:picard}{article}{` gives me errors. I'm using `ucthesisnew.sty`, which is probably the cause of this problem.
https://tex.stackexchange.com/users/198
How do I modify a .bbl file to change the label which appears in my document when it is cited
false
The answer to the question as originally written was trivial (because there was no mention of the fact that `amsrefs` was involved). If you want to change your reference to the paper by Breuer, Huber, and Petruccione in 1997 from [BHP97] to something like [Stochastic] then you open up the .bbl file and you find the entry, and change it from ``` \bibitem[BHP97]{breuer_stochastic_1997} Heinz-Peter Breuer, Wolfgang Huber, and Francesco Petruccione. \newblock Stochastic wave-function method versus density matrix: a numerical comparison. \newblock {\em Computer Physics Communications}, 104(1-3):46--58, August 1997. ``` to ``` \bibitem[Stochastic]{breuer_stochastic_1997} Heinz-Peter Breuer, Wolfgang Huber, and Francesco Petruccione. \newblock Stochastic wave-function method versus density matrix: a numerical comparison. \newblock {\em Computer Physics Communications}, 104(1-3):46--58, August 1997. ``` This answers the question you asked, but I suspect it is not the question that *you meant to ask*, is it?
1
https://tex.stackexchange.com/users/627
1585
1,107
https://tex.stackexchange.com/questions/1578
2
How do I modify a .bbl file to change the label which appears in my document when something is cited? Despite indicating in [this](https://stackoverflow.com/questions/1982075/is-there-a-way-to-override-a-bibtex-style-file-for-a-particular-entry) question that I know how to do this, I have forgotten and can't manage to google my way to an answer. Scott mentions in [this](https://tex.stackexchange.com/questions/102/can-one-manually-override-bibtexs-choice-of-citation-keys-by-adding-a-field-to/126#126) answer that thisis possible. EDIT: In response to some answers below, here is the typical entry of the .bbl file that bibtex produces: ``` \bib{abbotKR:picard}{article}{ author={Abbott, Timothy~G.}, author={Kedlaya, Kiran~S.}, author={Roe, David}, title={Bounding picard numbers of surfaces using p-adic cohomology}, date={2007Jan}, eprint={math/0601508}, url={http://arxiv.org/abs/math/0601508}, } ``` And `\bib[label]{abbotKR:picard}{article}{` gives me errors. I'm using `ucthesisnew.sty`, which is probably the cause of this problem.
https://tex.stackexchange.com/users/198
How do I modify a .bbl file to change the label which appears in my document when it is cited
true
Based on your revised question, it appears that you are using the `amsrefs` package. In this case, modify your .bbl by adding a `label` field, thusly: ``` \bib{abbotKR:picard}{article}{ label={Picard}, author={Abbott, Timothy~G.}, author={Kedlaya, Kiran~S.}, author={Roe, David}, title={Bounding picard numbers of surfaces using p-adic cohomology}, date={2007Jan}, eprint={math/0601508}, url={http://arxiv.org/abs/math/0601508}, } ``` and make sure to be using the `alphabetic` or `shortalphabetic` options to `amsrefs`
2
https://tex.stackexchange.com/users/627
1586
1,108
https://tex.stackexchange.com/questions/1462
8
Or at least in most distributions...
https://tex.stackexchange.com/users/253
Is there a common set of packages that is available in every distribution?
true
In theory, the only packages that are guaranteed to be present are the ones which are part of the latex distribution itself, and the ones in [/macros/latex/required](http://tug.ctan.org/tex-archive/macros/latex/required). To quote: > > These are packages that the LaTeX team > have declared are ‘required’ of any > LaTeX distribution—in the sense that > any package writer is entitled to > assume the presence of these packages > in support of her package. > > > You get amslatex, babel, slovak, cyrillic, grfguide, graphics, graphicx, trig, keyval, epsfig, color, psnfss, afterpage, array, bm, calc, dcolumn, delarray, enumerate, fileerr, fontsmpl, ftnright, hhline, indentfirst, layout, longtable, multicol, rawfonts, showkeys, somedefs, tabularx, theorem, trace, varioref, verbatim, xr, xspace. In practice, if it's on CTAN, it's probably in your distribution.
10
https://tex.stackexchange.com/users/627
1587
1,109
https://tex.stackexchange.com/questions/1588
43
Given an equation, say Bayes' rule, ``` $P(X \mid O) \propto P(X)P(O \mid X)$ ``` how do I label the different parts of the equation using curly braces?
https://tex.stackexchange.com/users/512
Using braces to label parts of an equation
true
I think you're after the `\underbrace` and `\overbrace` commands, which you could use as ``` $\underbrace{P(X \mid O)}_{p_1} \propto \overbrace{P(X)P(O \mid X)}^{p_2}$. ``` Which results in:
59
https://tex.stackexchange.com/users/32
1589
1,110
https://tex.stackexchange.com/questions/1583
81
I would like to have footnotes in tables, but the `\footnote` command does not work inside a `table` environment. Googling one finds that this is [a frequently asked question](https://texfaq.org/FAQ-footintab), at least in the UK. That link contains a list of solutions to the problem, but since the author of the FAQ does not believe that this is good style, no comparison is made between the different methods. I am sure that there are good typographical reasons why in most situations it is undesirable to have footnotes in tables (although I have never come across them), however I have recently felt the need to do just this in a paper I am currently writing. Therefore I'd like to ask two questions: 1. What are the arguments against footnotes in tables? 2. If one really must go against the advice in 1., which method (whether considered in the [FAQ above](https://texfaq.org/FAQ-footintab) or not) would you recommend? Thanks in advance. ### Added In response to ShreevatsaR's comment: I do not much care for where the text of the footnote appears. I do however insist on the footnote marks being attached to the relevant entries in the table, so that I can avoid having to reference "the second entry in the eighth line of the table", etc...
https://tex.stackexchange.com/users/18
Footnotes in tables?
false
With the [`threeparttable`s](http://www.ctan.org/tex-archive/help/Catalogue/entries/threeparttable.html) you can add table notes. MWE --- ``` \documentclass{article} \usepackage{booktabs,caption,fixltx2e} \usepackage[flushleft]{threeparttable} \begin{document} \begin{table} \begin{threeparttable} \caption{Sample ANOVA table} \begin{tabular}{lllll} \toprule Stubhead & \( df \) & \( f \) & \( \eta \) & \( p \) \\ \midrule & \multicolumn{4}{c}{Spanning text} \\ Row 1 & 1 & 0.67 & 0.55 & 0.41 \\ Row 2 & 2 & 0.02 & 0.01 & 0.39 \\ Row 3 & 3 & 0.15 & 0.33 & 0.34 \\ Row 4 & 4 & 1.00 & 0.76 & 0.54 \\ \bottomrule \end{tabular} \begin{tablenotes} \small \item This is where authors provide additional information about the data, including whatever notes are needed. \end{tablenotes} \end{threeparttable} \end{table} \end{document} ``` (Stolen from this [answer](https://tex.stackexchange.com/a/13316/7306))
20
https://tex.stackexchange.com/users/nan
1590
1,111
https://tex.stackexchange.com/questions/1319
976
If you were asked to show examples of beautifully typeset documents in TeX & friends, what would you suggest? Preferably documents available online (I'm aware I could go to a bookstore and find many such documents called 'books'). Extra bonus for documents whose LaTeX source is available. This is not an idle question. Seeing great examples of any craft is both educational and inspiring, let alone explaining why we prefer TeX to Word or other text editors. For instance, I like how Philipp Lehman's [Font Installation Guide](https://texdoc.org/serve/fontinstallationguide/0) looks. I don't know enough LaTeX to realize how much customization was done, but the ToC looks polished. Your nominations, please ...
https://tex.stackexchange.com/users/564
Showcase of beautiful typography done in TeX & friends
false
OK, so here is one "from the Friends". I am a great admirer of typographic skill of Hans Hagen and [Metafun manual](http://www.pragma-ade.com/general/manuals/metafun-s.pdf) is one of my favourites. Also available is [Metafun manual source](http://context.aanhet.net/svn/manuals/metafun/).
38
https://tex.stackexchange.com/users/359
1591
1,112
https://tex.stackexchange.com/questions/1314
5
I use LyX. When I use the "Title" environment under article(hebrew), it uses very big spacings between it and the rest of the document. How do I control the spacing and make it use a compact title so my resume will all fit in one page?
https://tex.stackexchange.com/users/5
Reducing the title spacing
true
While I would look for a proper resume class, the "quick and dirty" (and non-encouraged) way to reduce vertical spacing is to insert the command \vskip -1.5em after the \maketitle, with 1.5 substituted for an appropriate amount.
5
https://tex.stackexchange.com/users/194
1592
1,113
https://tex.stackexchange.com/questions/1314
5
I use LyX. When I use the "Title" environment under article(hebrew), it uses very big spacings between it and the rest of the document. How do I control the spacing and make it use a compact title so my resume will all fit in one page?
https://tex.stackexchange.com/users/5
Reducing the title spacing
false
Consider instead using a format or style already defined to produce a resume, there are already lots of useful answers in [another question](https://tex.stackexchange.com/questions/80/latex-template-for-resume-curriculum-vitae).
1
https://tex.stackexchange.com/users/169
1593
1,114
https://tex.stackexchange.com/questions/319
15
I use TexMaker and LyX in Ubuntu. I'd like to typeset Tamil/Telugu/Hindi text, and so far I've been unsuccessful. Please suggest me a working TeX/LaTeX/variants setup for Indic languages, especially Tamil. edit: XeTeX seems to have good Unicode support, and I read TexMaker has XeteX support too. I installed all XeTeX, latex-tamil packages etc. But couldn't make them work yet. Documentations talk about Arabic or Korean text. Nothing mentioned about Tamil/Indic text.
https://tex.stackexchange.com/users/172
LaTeX/XeTeX setup Tamil/Indic languages
false
[Note added on 7 July 2019] **Please disregard this answer and use XeLaTeX/LuaLaTeX with polyglossia/babel instead, as explained in Davislor's answer. I'll leave this answer here for historical interest.** I was able to typeset Tamil using LaTeX on Ubuntu by installing the [`itrans`](http://www.ctan.org/tex-archive/language/indian/itrans/ "itrans") and `itrans-fonts` packages via synaptic (or apt-get). It doesn't let you type in Tamil directly, rather you have to key in the ASCII transcription, then process it with `itrans` from the command prompt, then run (pdf)latex on the resultant file. Say I have the following file `nandri-pre.tex`: ``` \documentclass{minimal} \usepackage[preprocess]{itrans} \newfont{\tmlb}{wntml12} \newfont{\tmls}{wntml10} \hyphenchar\tmlb=-1 \hyphenchar\tmls=-1 #tamilifm=wntml.ifm #tamilfont=\tmlb \begin{document} Hi! {#tamil na^nRi #endtamil} \end{document} ``` Process it with `itrans`: ``` $ itrans -i nandri-pre.tex -o nandri.tex ``` Then run (pdf)latex on `nandri.tex`, which is of course the file to edit if you have further text to add.
5
https://tex.stackexchange.com/users/226
1594
1,115
https://tex.stackexchange.com/questions/1583
81
I would like to have footnotes in tables, but the `\footnote` command does not work inside a `table` environment. Googling one finds that this is [a frequently asked question](https://texfaq.org/FAQ-footintab), at least in the UK. That link contains a list of solutions to the problem, but since the author of the FAQ does not believe that this is good style, no comparison is made between the different methods. I am sure that there are good typographical reasons why in most situations it is undesirable to have footnotes in tables (although I have never come across them), however I have recently felt the need to do just this in a paper I am currently writing. Therefore I'd like to ask two questions: 1. What are the arguments against footnotes in tables? 2. If one really must go against the advice in 1., which method (whether considered in the [FAQ above](https://texfaq.org/FAQ-footintab) or not) would you recommend? Thanks in advance. ### Added In response to ShreevatsaR's comment: I do not much care for where the text of the footnote appears. I do however insist on the footnote marks being attached to the relevant entries in the table, so that I can avoid having to reference "the second entry in the eighth line of the table", etc...
https://tex.stackexchange.com/users/18
Footnotes in tables?
false
Imho, I don't see any specific reason not to put footnotes in a table; however, if the content of the footnotes can be explained in the caption of the table itself, I'd prefer to use the caption. I'm used to write in the caption a short explanation of what in the table is, rather than a short title. I suggest you to use the `ctable` package, using the `\tnote` command. From the package documentation: > > The ctable package lets you easily typeset captioned table and figure floats with optional footnotes. > > > At page 3 of the documentation the `\tnote` command is explained, and at page 4 you can see a clear example.
5
https://tex.stackexchange.com/users/177
1595
1,116
https://tex.stackexchange.com/questions/1597
29
I'm just getting started with LaTeX to write scientific papers. I don't want to have paragraph indentation, so I've used the parskip package to deal with that. However, that doesn't seem to deal with the indentation of the first line of the abstract. I've tried manually setting parident but that doesn't seem to work either. Is there a special way of setting the paragraph indent within the abstract section? ``` \documentclass{article} \usepackage{parskip} \begin{document} \title{What are the fundamental gaps in scientific knowledge?} \author{Robin Wilson} \maketitle \begin{abstract} Recent reports by the global environmental ... \end{abstract} \section{Introduction} Here is the text of your introduction. And another paragraph here. \end{document} ```
https://tex.stackexchange.com/users/495
Remove paragraph indent from abstract in article class
true
The easiest way is to insert [`\noindent`](http://texblog.net/help/latex/ltx-280.html): ``` \begin{abstract} \noindent Recent reports ... \end{abstract} ``` The reason is, that article uses a [`quotation` environment](http://texblog.net/help/latex/ltx-297.html) for the abstract, and `quotation` uses paragraph indentation in contrary to [`quote`](http://texblog.net/help/latex/ltx-298.html). So, you coud redefine the `abstract` environment to use `quote`, but it's easier just to insert `\noindent`. If needed, you could additionally set `\parindent` to 0pt inside the abstract.
35
https://tex.stackexchange.com/users/213
1598
1,117
https://tex.stackexchange.com/questions/1596
46
Up until now, I've just been using LyX for all my LaTeX needs. Now I have a `.tex` file and I need to compile it (turn to pdf). How do I do this on Windows XP? Obviously I have LaTeX installed (MikTeX).
https://tex.stackexchange.com/users/5
How to compile a LaTeX document?
true
one way of doing this is using the command line by entering `pdflatex yourfilename.tex` (assuming MikTex is in your path - just give it a try). Another way would include installing software such as [TeXnicCenter](http://www.texniccenter.org/) or [TeXworks](http://tug.org/texworks/) which will let you open/edit/compile a `.tex` file from within an editor environment. A third way could be to import it into LyX and then compile with LyX as usual. **Edit:** See [LaTeX Editors/IDEs](https://tex.stackexchange.com/questions/339/latex-editors-ides).
53
https://tex.stackexchange.com/users/237
1599
1,118
https://tex.stackexchange.com/questions/158
36
Occasionally, I write letters that I actually print out and send by snail mail :). I'd like them to look as formal as possible. Archaic (pre-typewriter) Dutch customs require the sender's address to be in the top left corner and the recipient's in the top right. The place and date should be aligned with the recipient's address. The sign off ("Yours truly") should also be aligned with that. Of course there are also specific rules for the amount of vertical whitespace. Does anyone know of a good package that lets me customize all this stuff, preferably in a .sty file or something that I can include, so I don't have to do it again for every letter?
https://tex.stackexchange.com/users/116
Anyone know a good template for formal letters?
false
I use the scrlttr2 class from koma-skript. You can define your own letterhead and also the head on subsequent pages (same for footer). It is highly adjustable and I think you can adjust it to your own needs fairly easy (depending on your experience).
2
https://tex.stackexchange.com/users/632
1600
1,119
https://tex.stackexchange.com/questions/1601
4
Most of my documents start with a couple of quick hacks that save me literally a couple of keystrokes a month: ``` \let\cite\texcite \let\epsilon\varepsilon ``` and so on. Now, I'd like to do a similar thing to globally have my `itemize` environments behave like the `itemize*` environment defined by the `mdwlist` package. This is a little trickier, because itemize is an environment, not a command. How do I do this?
https://tex.stackexchange.com/users/215
Replacing itemize by mdwlist's itemize* throughout?
false
**Wrong answer** (in this case): If this is LaTeX, then in general something like ``` \renewenvironment{itemize}{\begin{itemize*}}{\end{itemize*}} ``` should do the trick. However in this case it will cause nesting problems if `itemize*` internally uses `itemize`. (Thanks, Stefan)
3
https://tex.stackexchange.com/users/83
1602
1,120
https://tex.stackexchange.com/questions/1597
29
I'm just getting started with LaTeX to write scientific papers. I don't want to have paragraph indentation, so I've used the parskip package to deal with that. However, that doesn't seem to deal with the indentation of the first line of the abstract. I've tried manually setting parident but that doesn't seem to work either. Is there a special way of setting the paragraph indent within the abstract section? ``` \documentclass{article} \usepackage{parskip} \begin{document} \title{What are the fundamental gaps in scientific knowledge?} \author{Robin Wilson} \maketitle \begin{abstract} Recent reports by the global environmental ... \end{abstract} \section{Introduction} Here is the text of your introduction. And another paragraph here. \end{document} ```
https://tex.stackexchange.com/users/495
Remove paragraph indent from abstract in article class
false
If you want to remove the indentation of the first line from every abstract in every LaTeX document (or more precisely, from every abstract based on the quotation environment), add the following to your personal configuration file: ``` \usepackage{etoolbox} \ifundef{\abstract}{}{\patchcmd{\abstract}% {\quotation}{\quotation\noindent\ignorespaces}{}{}} ```
5
https://tex.stackexchange.com/users/510
1603
1,121
https://tex.stackexchange.com/questions/1601
4
Most of my documents start with a couple of quick hacks that save me literally a couple of keystrokes a month: ``` \let\cite\texcite \let\epsilon\varepsilon ``` and so on. Now, I'd like to do a similar thing to globally have my `itemize` environments behave like the `itemize*` environment defined by the `mdwlist` package. This is a little trickier, because itemize is an environment, not a command. How do I do this?
https://tex.stackexchange.com/users/215
Replacing itemize by mdwlist's itemize* throughout?
true
Generally, in such cases we could achieve it by ``` \let\newname\name \let\endnewname\endname ``` or `\renewenvironment`. But here it's not this simple, since the old environment would still be used. We would easily end up with `TeX capacity exceeded` because of nesting. A solution is to store the old environment in another macro, afterwards we could refer to that. Or easier, use the `\makecompactlist` command of mdwlist to redefine the original itemize environment. ``` \documentclass{article} \usepackage{mdwlist} \let\stditemize\itemize \let\endstditemize\enditemize \let\itemize\undefined \makecompactlist{itemize}{stditemize} \begin{document} \begin{itemize} \item One \item Two \item Three \end{itemize} \end{document} ``` The compact output list:
7
https://tex.stackexchange.com/users/213
1604
1,122
https://tex.stackexchange.com/questions/1605
28
I'd like to know how to create a table of contents in LaTeX. For example, if I were to write a book, I would want something like this Contents ``` Chapter 1 1.1 Real Analysis .............. 1 1.2 Role of LUB Axiom........... 3 ``` How do I create this? I'd like to know.
https://tex.stackexchange.com/users/nan
Making a table of contents for a book
false
A table of contents (ToC) is produced by inserting `\tableofcontents` at the appropriate place in your document. ``` \documentclass{book} \begin{document} \tableofcontents \chapter{(Chapter Name)} \section{Real Analysis} \section{Role of LUB Axiom} \end{document} ``` Note that you need at least two LaTeX runs to produce the ToC (LaTeX collects the data for the ToC in the first run and typesets it in the second run). If the ToC itself comprises several pages, a third LaTeX run may be necessary to get the ToC's page references right.
41
https://tex.stackexchange.com/users/510
1606
1,123
https://tex.stackexchange.com/questions/1583
81
I would like to have footnotes in tables, but the `\footnote` command does not work inside a `table` environment. Googling one finds that this is [a frequently asked question](https://texfaq.org/FAQ-footintab), at least in the UK. That link contains a list of solutions to the problem, but since the author of the FAQ does not believe that this is good style, no comparison is made between the different methods. I am sure that there are good typographical reasons why in most situations it is undesirable to have footnotes in tables (although I have never come across them), however I have recently felt the need to do just this in a paper I am currently writing. Therefore I'd like to ask two questions: 1. What are the arguments against footnotes in tables? 2. If one really must go against the advice in 1., which method (whether considered in the [FAQ above](https://texfaq.org/FAQ-footintab) or not) would you recommend? Thanks in advance. ### Added In response to ShreevatsaR's comment: I do not much care for where the text of the footnote appears. I do however insist on the footnote marks being attached to the relevant entries in the table, so that I can avoid having to reference "the second entry in the eighth line of the table", etc...
https://tex.stackexchange.com/users/18
Footnotes in tables?
true
I had this kind of problem about 10 years ago, and no package provided any trick at this time. My solution was the following. I managed `\footnotemark`s and `\footnotetext`s separately. Semantically it is not really satisfactory, but it works quite well. The only problem may be that the table could be placed in another page than the `\footnotetext` :-( ``` \section{Footnotes in hostile environments} \begin{table}[h] \begin{center} \begin{tabular}{c|c|c} O & X\protect\footnotemark & O \\ \hline X & O\protect\footnotemark & X \\ \hline X & O & O \end{tabular} \end{center} \caption{Victory for Gilles\protect\footnotemark} \end{table} \addtocounter{footnote}{-2} \footnotetext{X} \addtocounter{footnote}{1} \footnotetext{O} \addtocounter{footnote}{1} \footnotetext{happy birthday Gilles ;-)} bla\raisebox{0.8ex}{\addtocounter{footnote}{1}\scriptsize\thefootnote}\footnotetext{forced test}blabla\footnote{footnote test} and now, more difficult: two footnotes in a \fbox{hostile\footnotemark environment\footnotemark}~... \addtocounter{footnote}{-1} \footnotetext{or very hostile} \addtocounter{footnote}{1} \footnotetext{area} ```
28
https://tex.stackexchange.com/users/546
1607
1,124
https://tex.stackexchange.com/questions/1605
28
I'd like to know how to create a table of contents in LaTeX. For example, if I were to write a book, I would want something like this Contents ``` Chapter 1 1.1 Real Analysis .............. 1 1.2 Role of LUB Axiom........... 3 ``` How do I create this? I'd like to know.
https://tex.stackexchange.com/users/nan
Making a table of contents for a book
false
There's just one command necessary: `\tableofcontents`, as already mentioned by lockstep. It takes the entries from the sectioning commands `\part`, `\chapter`, `\section` etc. Additionally, you could use the optional argument of a sectioning command to get a different, shorter entry for the table of contents, for example: ``` \section[short entry]{long title} ``` This is useful if you have very long titles in the body text but need shorter list entries in the table of contents. There are package for further customization of the contents list, if desired, for example: * [`tocloft`](http://ctan.org/pkg/tocloft) * [`titletoc`](http://ctan.org/pkg/titletoc) * `tocbasic` (part of [`KOMA-script`](http://ctan.org/pkg/koma-script)) * `tocstyle` (part of [`KOMA-script`](http://ctan.org/pkg/koma-script)) A very similar index could be created for your figures and tables. The commands are `\listoffigures` and `\listoftables`. I mention it because it's the same concept, here the content entries come from the `\caption` commands.
16
https://tex.stackexchange.com/users/213
1608
1,125
https://tex.stackexchange.com/questions/1517
47
I am currently letting friends and family spellcheck my thesis written with LaTeX. Since my markup is macro-heavy and not all of them have ever used another editor but MS Word, I cannot let them work with the source files directly. What is the best way for them to review the PDF and send me comments, so that I can quickly integrate them back into my .tex files? Some of them have Adobe Acrobat at work and can send me annotated PDFs, but at least 50% of the time of fixing the changes is searching the exact position of the missing comma or mistake. Is there a (preferably cross-plattform) solution that would make their and my life easier?
https://tex.stackexchange.com/users/595
Workflow for reviewing PDFs generated from TeX?
false
For me the best application to do that is PDF-XChange viewer, as discussed on Gnurou's blog at <http://www.gnurou.org/blog/2008/09/09/finally_real_pdf_annotating_under_linux> . I use it now and find it really easy from the reviewer and the writer point of view. There are free and commercial versions. The soft is available at <http://www.tracker-software.com/product/pdf-xchange-viewer> It runs on windows or wine (currently I use it on wine under linux debian and it works great). "The FREE version of the PDF-XChange Viewer may be used without limitation for Private, Commercial, Goverment and all uses, provided it is not -: incorporated or distributed for profit/commerical gain with other software or media distribution of any type - without first gaining permission."
3
https://tex.stackexchange.com/users/546
1609
1,126
https://tex.stackexchange.com/questions/1319
976
If you were asked to show examples of beautifully typeset documents in TeX & friends, what would you suggest? Preferably documents available online (I'm aware I could go to a bookstore and find many such documents called 'books'). Extra bonus for documents whose LaTeX source is available. This is not an idle question. Seeing great examples of any craft is both educational and inspiring, let alone explaining why we prefer TeX to Word or other text editors. For instance, I like how Philipp Lehman's [Font Installation Guide](https://texdoc.org/serve/fontinstallationguide/0) looks. I don't know enough LaTeX to realize how much customization was done, but the ToC looks polished. Your nominations, please ...
https://tex.stackexchange.com/users/564
Showcase of beautiful typography done in TeX & friends
false
The articles from the online journal ['Semantics & Pragmatics'](http://semprag.org/index) seem to come out very well.
21
https://tex.stackexchange.com/users/451
1610
1,127
https://tex.stackexchange.com/questions/1612
9
Last year I was involved in writing a large group proposal with LaTeX. This involved various sections written and rewritten by disparate subgroups, with all the merging and editing headaches you'd expect and more. In particular, handling the bibliography was a nightmare. Everyone handled references by hand without using BibTeX or anything similar (some people didn't even use \cite), and it took hours of work at the end to get a properly alphabetized bibliography without duplications; we ran out of time and energy for any attempt at consistency of formating, or even checking which preprints were now publications in print. It is likely that I will be involved in a similar proposal at some point in the future, and I'm looking for suggestions to make (at least) the bibliography work more smoothly. Keep in mind that what I'm dealing with is at least as much a sociological problem as a technological one. I think almost none of the people I'm working with have even heard of BibTeX, and some may be resistant to making the time investment to learn any unfamiliar software at all. So very low overhead is a must. I had been planning to insist on using BibTeX, but I just recently learned about AMSRefs, which (used in the simplest way) seems to require less overhead for novices. (Since we are mathematicians, it's easy to get both BibTeX and AMSRefs data for our citations from MathSciNet or MRefs.) And of course there may be other alternatives, or things that work with BibTeX, that I don't know about. I'm well aware that BibTeX or something similar would at best only help with a very few aspects of the problems I described with my past experience, and that the Right Solution would be to use some kind of VCS for the entire thing. Unfortunately, I think it's probably out of the question to get everyone else to learn to use such a system (though I'm open to being convinced otherwise).
https://tex.stackexchange.com/users/206
Handling bibliographies with many coauthors
false
You might want to consider to use Mendeley <http://www.mendeley.com/>, which is in essence a bibliography manager that is -- in my opinion easy to use. You can also share (partial) libraries, and collections can be exported (and imported) to BibTeX. The program Mendeley is free, and quite good in organizing even your existing library of PDF articles. It should be intuitive enough for your collaborators to use, and is available for most platforms (MAC / Linux / Windows)
4
https://tex.stackexchange.com/users/nan
1613
1,128
https://tex.stackexchange.com/questions/1611
7
I have two nodes (drawn as rectangles) in my picture, one filled in green, the other red. I wish to produce a third 'rectangle' which shows the effect of splicing these two rectangles and stitching them back together. Or, in other words, I wish to produce a rectangle twice the width of my starting rectangles that is subdivided up into smaller segments, each segment filled alternating between red and green. Given my picture: ``` \begin{tikzpicture}[node distance=5mm] \node [fill=red!30,minimum width=40mm] (b1) {Bank 1 \unit[1024]{MiB}}; \node [fill=green!30,minimum width=40mm,right=of b1] (b2) {Bank 2 \unit[1024]{MiB}}; \end{tikzpicture} ``` I have been able to 'create' the desired effect using two `\foreach` loops: ``` \foreach \n in {0,2,...,10} \draw [fill=red!30] (\n*6.66mm,1) +(-3.33mm,0) rectangle ++(3.33mm,5mm); \foreach \n in {1,3,...,11} \draw [fill=green!30] (\n*6.66mm,1) +(-3.33mm,0) rectangle ++(3.33mm,5mm); ``` However, this requires several manual factors (40 / 6 = 6.66, 6.66 / 2 = 3.33) and I have been unable to position it under my existing two nodes due to the use of absolute coordinates. Are there better ways of doing this which would give me more/easier control of the positioning of the 'group'? I looked into splitting a rectangle but this is seemingly limited to four horizontal splits.
https://tex.stackexchange.com/users/753
Subdividing and Filling a Tikz Rectangle
false
You can use the TikZ \scope instruction to make your picture local and then use shifts and scales as options to the \scope to place the whole group where you want it.
2
https://tex.stackexchange.com/users/257
1614
1,129
https://tex.stackexchange.com/questions/1368
33
For example: ``` \begin{equation} \delta % ok \Delta % ok \epsilon % ok \Epsilon % error \end{equation} ```
https://tex.stackexchange.com/users/572
Why can I only use some capital greek letters inside my equations?
false
Other answers have made this fairly clear: a capital epsilon is identical to a capital E, so there's no need for a separate LaTeX command. However, there is a point missing from the answers above. Roman letters (by which I mean letters from the Roman alphabet) are conventionally set italic in math mode, to make clearer the distinction between maths and text. But Greek letters are set upright by default (though some journals deviate), because there's no distinction that needs making (assuming you're not writing in Greek). So if you really want a capital epsilon, and you want a consistent look for all your capital Greek letters, you should use \mathrm{E}.
6
https://tex.stackexchange.com/users/739
1615
1,130
https://tex.stackexchange.com/questions/1611
7
I have two nodes (drawn as rectangles) in my picture, one filled in green, the other red. I wish to produce a third 'rectangle' which shows the effect of splicing these two rectangles and stitching them back together. Or, in other words, I wish to produce a rectangle twice the width of my starting rectangles that is subdivided up into smaller segments, each segment filled alternating between red and green. Given my picture: ``` \begin{tikzpicture}[node distance=5mm] \node [fill=red!30,minimum width=40mm] (b1) {Bank 1 \unit[1024]{MiB}}; \node [fill=green!30,minimum width=40mm,right=of b1] (b2) {Bank 2 \unit[1024]{MiB}}; \end{tikzpicture} ``` I have been able to 'create' the desired effect using two `\foreach` loops: ``` \foreach \n in {0,2,...,10} \draw [fill=red!30] (\n*6.66mm,1) +(-3.33mm,0) rectangle ++(3.33mm,5mm); \foreach \n in {1,3,...,11} \draw [fill=green!30] (\n*6.66mm,1) +(-3.33mm,0) rectangle ++(3.33mm,5mm); ``` However, this requires several manual factors (40 / 6 = 6.66, 6.66 / 2 = 3.33) and I have been unable to position it under my existing two nodes due to the use of absolute coordinates. Are there better ways of doing this which would give me more/easier control of the positioning of the 'group'? I looked into splitting a rectangle but this is seemingly limited to four horizontal splits.
https://tex.stackexchange.com/users/753
Subdividing and Filling a Tikz Rectangle
true
You could use a chain and position the first node in the chain using the anchors of the unsplit nodes: ``` \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning} \usetikzlibrary{chains} \begin{document} \newlength\nodewidth \setlength\nodewidth{40mm} \tikzset{% fill1/.style={fill=red!30,outer sep=0pt}, fill2/.style={fill=green!30,outer sep=0pt}, split/.style={% minimum width=0.5/3*\nodewidth, minimum height=5mm, %inner sep=0pt, outer sep=0pt, on chain}, split1/.style={split,fill1}, split2/.style={split,fill2}, } \begin{tikzpicture}[% start chain, node distance=0pt] \node [fill1,minimum width=\nodewidth] (b1) {Bank 1 1024 MiB}; \node [fill2,minimum width=\nodewidth,right=of b1] (b2) {Bank 2 1024 MiB}; \node [split1,anchor=north west] at (b1.south west) {}; \node [split2] {}; \foreach \n in {0,1,...,4} {% \node [split1] {}; \node [split2] {}; }; \end{tikzpicture} \end{document} ```
4
https://tex.stackexchange.com/users/565
1616
1,131
https://tex.stackexchange.com/questions/1517
47
I am currently letting friends and family spellcheck my thesis written with LaTeX. Since my markup is macro-heavy and not all of them have ever used another editor but MS Word, I cannot let them work with the source files directly. What is the best way for them to review the PDF and send me comments, so that I can quickly integrate them back into my .tex files? Some of them have Adobe Acrobat at work and can send me annotated PDFs, but at least 50% of the time of fixing the changes is searching the exact position of the missing comma or mistake. Is there a (preferably cross-plattform) solution that would make their and my life easier?
https://tex.stackexchange.com/users/595
Workflow for reviewing PDFs generated from TeX?
true
[PDFSync](http://itexmac.sourceforge.net/pdfsync.html) is the way to go. Also, compile your thesis with the lineno package for line numbering (you can find it on CTAN with docs). When anyone annotates your PDF and send it to you, PDFSync will allow you to just click on the passage in the PDF in order to open your LaTeX file in the corresponding position. It will save a lot of time when searching for missing commas and such things. For people that cannot annotate your PDF, they can refer to page and line number (thanks to lineno), and that will also greatly speed up your ability to find the place you need to do corrections, because you can just open your own PDF, and thanks to PDFSync you will be able to open the LaTeX source in the right place. This is what I do now for my LaTeX writing, and it works wonders when passing review versions around to co-authors. Moreover, line numbers are used by APS when they send proofs for papers about to be published (not sure why they don't do it for referee versions too, but ...), and that makes the communication of typesetting errors much easier.
15
https://tex.stackexchange.com/users/756
1617
1,132
https://tex.stackexchange.com/questions/1597
29
I'm just getting started with LaTeX to write scientific papers. I don't want to have paragraph indentation, so I've used the parskip package to deal with that. However, that doesn't seem to deal with the indentation of the first line of the abstract. I've tried manually setting parident but that doesn't seem to work either. Is there a special way of setting the paragraph indent within the abstract section? ``` \documentclass{article} \usepackage{parskip} \begin{document} \title{What are the fundamental gaps in scientific knowledge?} \author{Robin Wilson} \maketitle \begin{abstract} Recent reports by the global environmental ... \end{abstract} \section{Introduction} Here is the text of your introduction. And another paragraph here. \end{document} ```
https://tex.stackexchange.com/users/495
Remove paragraph indent from abstract in article class
false
I saw a paper, written by two eminent mathematicians, that had ``` \def\ni{\noindent} ``` in the preamble, and \ni at the start of every paragraph. This seemed to do no harm to the formatting or to the mathematics (which is of the highest class). So my advice is: by all means strive for typographic excellence and good use of TeX. But first class mathematics is both harder and more important. If you've got something important to say, don't worry that your TeX is not the best. By the way, it's just as well that they did not need 'cancelled element of' in their paper, for its name is \ni!
3
https://tex.stackexchange.com/users/176
1618
1,133
https://tex.stackexchange.com/questions/291
46
How to wrap text around a figure in LaTeX like this? ``` Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean quis mi ut elit interdum imperdiet quis non ante. Sed imperdiet, sapien quis +------------------------+ viverra rhoncus, tellus dui | | dictum nisl, at porta purus | | ipsum ac turpis. Fusce auctor | FIGURE | ullamcorper adipiscing. Nunc | HERE | non quam ac orci egestas con- | | sequat ut eget quam. Cras | | blandit condimentum ornare. +------------------------+ Curabitur aliquam, nulla sit amet iaculis tristique, mi nulla auctor magna, sit amet imperdiet ante arcu a libero. ```
https://tex.stackexchange.com/users/82
How to wrap text around a figure?
false
The [floatflt](http://ctan.org/pkg/floatflt) package is another approach to wrap text around floats.
5
https://tex.stackexchange.com/users/213
1619
1,134
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?
true
**Newsgroups:** * [comp.text.tex](http://groups.google.com/group/comp.text.tex/topics): Usenet discussion group for TeX and LaTeX * [de.comp.text.tex](http://groups.google.de/group/de.comp.text.tex/topics): German Usenet discussion group for TeX and LaTeX * [fr.comp.text.tex](http://groups.google.de/group/fr.comp.text.tex/topics): French Usenet group * [es.comp.lenguajes.tex](https://groups.google.com/group/es.comp.lenguajes.tex/topics): Spanish Usenet group **Web forums:** * [TeX, LaTeX and friends](https://tex.stackexchange.com/) on Stack Exchange * [TeXWelt](https://texwelt.de/): in German, with format and organization very similar to TeX.SE * [LaTeX.org](https://latex.org/): LaTeX-dedicated web forum * [goLaTeX Deutsch](https://golatex.de/): German LaTeX forum, with Wiki * [TeXnique.fr](https://texnique.fr): a French TeX Q&A site * [mrunix.de](http://www.mrunix.de/forums/forumdisplay.php?f=38): today less frequented German LaTeX subforum of a programmers site * [qa.parsilatex.com](http://qa.parsilatex.com/): in Persian **Frequently Asked Questions (FAQ):** * [TeX FAQ](http://texfaq.org): FAQ sponsored by the UK TeX Users Group, formerly maintained by Robin Fairbairns * [The Visual LaTeX FAQ](https://mirrors.ctan.org/info/visualFAQ/visualFAQ.pdf): formatting samples available through a hyperlink interface * [MacTeX FAQ](https://tug.org/mactex/faq/): Mac OS X specific questions and answers * [AMS FAQ](http://www.ams.org/authors/author-faq.html): FAQ for AMS-LaTeX, primarily for AMS authors, but also dealing with `amsmath` and with LaTeX in general * [de-tex-faq](https://mirrors.ctan.org/info/german/detexfaq/detexfaq.pdf): FAQ of the German TeX user group DANTE e.V. * [Picture FAQ](http://www.ctan.org/get/info/l2picfaq/german/l2picfaq.pdf): How to Include Pictures, in German **Software and Package Archives and Catalogues:** * [CTAN - The Comprehensive TeX Archive Network](https://www.ctan.org/): the authoritative collection of materials related to TeX and LaTeX * [The TeX Catalogue Online](http://texcatalogue.sarovar.org/): TeX/LaTeX package catalogue with topical, hierarchical, brief and alphabetical index * [TeX Resources on the Web](http://www.tug.org/interest.html): Collection by the TeX User Group * [The LaTeX Font Catalogue](https://tug.org/FontCatalogue/): displays nearly all free fonts available for use with LaTeX **Wikis:** * [The LaTeX Wiki book](http://en.wikibooks.org/wiki/LaTeX) on wikibooks.org * [goLaTeX wiki](https://golatex.de/wiki/index.php?title=Hauptseite): German wiki with language reference and package information **Mailing lists:** * [texhax](https://tug.org/mailman/listinfo/texhax): the original TeX mailing list, going back to the 1980's * [mailing lists of the TeX Users Group](https://tug.org/mailman/listinfo): around 50 lists on tug.org for general subjects and certain packages * [mailing lists on gmane.org](http://gmane.org/lists.php): among many lists there are several TeX related mailing lists * [ctan-ann - CTAN Announcements](http://www.mail-archive.com/ctan-ann@dante.de/): announcements of the Comprehensive TeX Archive Network: updates, new packages etc. * [pgf-users](https://lists.sourceforge.net/lists/listinfo/pgf-users): mailing list for pgf/TikZ * [Typo-L](https://listserv.heanet.ie/lists/typo-l.html): discussion of type and typographic design * [tex-d-l](http://www.listserv.dfn.de/archives/tex-d-l.html): German mailing list for TeX and LaTeX **User group sites**: * [TUG - TeX Users Group](http://www.tug.org/) * [UK-TUG](http://uk-tug-archive.tug.org/): TeX in the United Kingdom * [DANTE e.V.](https://www.dante.de/): German users group * [The LaTeX Project](http://www.latex-project.org/) * [more groups](https://www.tug.org/usergroups.html) listed by the TUG * [ParsiLaTeX](http://parsilatex.com/): Iranian users group **Blogs:** * [TeXblog](https://texblog.net/): News and information by Stefan Kottwitz * [Some TeX Developments](https://www.texdev.net/): blog by LaTeX developer Joseph Wright * [LaTeX Alive](http://latex-alive.tumblr.com/): blog by Will Robertson * [LaTeX for Humans](http://latexforhumans.wordpress.com/): Tips, resources and tutorials * [texblog | because LaTeX matters](http://texblog.org/) * more to be found on [texample.net/community](https://www.texample.net/community/) **Distributions** - where to get a complete TeX system: * [TeX Live](https://tug.org/texlive/): TeX system for Linux, Unix, Mac OS X and Windows * [MiKTeX](https://www.miktex.org/): user-friendly TeX system for Windows * [proTeXt](https://tug.org/protext/): easy-to-install distribution for Windows, based on MiKTeX * [MacTeX](http://tug.org/mactex/): TeX Live customized for Mac OS X with useful additions **Editors:** * Cross-platform: [Texmaker](http://www.xm1math.net/texmaker/), [TeXstudio](http://texstudio.sourceforge.net/), [TeXworks](http://tug.org/texworks/), [Emacs](http://www.gnu.org/software/emacs/) * Windows: [TeXnicCenter](http://www.texniccenter.org/), [WinEdt](http://www.winedt.com/) ([community](http://www.winedt.org/)), [LEd](http://www.latexeditor.org/), [LaTeX-Editor](http://www.meshwalk.com/latexeditor/), [WinShell](http://www.winshell.de/) * Linux: [Kile](http://kile.sourceforge.net/), [gedit](http://www.gnome.org/projects/gedit/) and [plugin](http://live.gnome.org/Gedit/LaTeXPlugin) * Mac OS X: [TeXShop](http://www.uoregon.edu/%7Ekoch/texshop/) * Also see [LaTeX Editors/IDEs](https://tex.stackexchange.com/questions/339/latex-editors-ides) **Viewers:** * see [Output viewers topic](https://tex.stackexchange.com/questions/2006/output-viewers-for-use-with-latex) for all platforms and formats **Friends:** - Software related to TeX and LaTeX * The [ConTeXt Garden](http://wiki.contextgarden.net/Main_Page) * [LyX homepage](http://www.lyx.org/) and [wiki](http://wiki.lyx.org/) * [LuaTeX](http://www.luatex.org/) * [GNU TeXmacs](http://www.texmacs.org/)
72
https://tex.stackexchange.com/users/213
1621
1,135
https://tex.stackexchange.com/questions/1620
2
I have several questions concerning possible features/configurations I am searching for in Winedt6. I'd like to do the following stuff but I even don't know if this is possible or if there are respective options: 1. I'd like the tex tree to be built automatically all the time. That is, I don't want to click any button in order to refresh the tree. 2. The TOC tree should show the numbering of the sections etc. 3. I'd like to clone my window such that I can see and edit the very same file in two views/panes/windows in parallel/simultaneously. 4. I want the TOC tree to expand till the level of sections by default. 5. If I edit a file opened in Winedt6.0 with another editor, I want Winedt to update its Window silently without asking me if it should show the changes made externally.
https://tex.stackexchange.com/users/nan
Winedt 6.0 toc tree and window view automation?
false
I've done some WinEdt macro programming (in version 5.5, but I don't think it's changed much since then). In any case, that's the way to go, even though its macro programming language is pretty awful. However, it does have DDE, and so you can have an external program issue commands to WinEdt. This is similar to, but more powerful than, the commands issued from the preview when doing an inverse search. For example, if WinEdt does not have a 'execute every 5 seconds' command, you could fake one by using an external process to send a request by DDE every 5 seconds. You can get help on the basic WinEdt commands from the main menu bar, under Help or Macros, as I recall. I hope this gets you going on your problem, because I don't think they'll be an off-the-shelf solution. Another place to ask for help is usually friendly and helpful [WinEdt mailing list](http://winedt.com/support.html).
1
https://tex.stackexchange.com/users/176
1622
1,136
https://tex.stackexchange.com/questions/1368
33
For example: ``` \begin{equation} \delta % ok \Delta % ok \epsilon % ok \Epsilon % error \end{equation} ```
https://tex.stackexchange.com/users/572
Why can I only use some capital greek letters inside my equations?
false
Well, my wild guess is that such macros are missing because CM has no such glyphs to begin with, Knuth's Greek is meant for use in math and not for running text and thus there were no point in duplicating glyphs that are visually indistinguishable from Latin counterparts.
1
https://tex.stackexchange.com/users/729
1623
1,137
https://tex.stackexchange.com/questions/1517
47
I am currently letting friends and family spellcheck my thesis written with LaTeX. Since my markup is macro-heavy and not all of them have ever used another editor but MS Word, I cannot let them work with the source files directly. What is the best way for them to review the PDF and send me comments, so that I can quickly integrate them back into my .tex files? Some of them have Adobe Acrobat at work and can send me annotated PDFs, but at least 50% of the time of fixing the changes is searching the exact position of the missing comma or mistake. Is there a (preferably cross-plattform) solution that would make their and my life easier?
https://tex.stackexchange.com/users/595
Workflow for reviewing PDFs generated from TeX?
false
OK, I have been thinking about this for some more. OpenOffice appears to have a pdf import extension (it is no longer marked beta) but I tried using it to import a 60-page pdf and it said input/output error. Not sure if it had something to do with me using it through ssh. <http://tug.org/utilities/texconv/textopc.html> has a lot of useful comments on various options of converting LaTeX to other formats. Personally I will go with Convert LaTeX to an intermediate format such as docbook/html (See [How to create PDF and HTML output from the same source](https://tex.stackexchange.com/questions/1507/how-to-create-pdf-and-html-output-from-the-same-source)) and import it into word or openoffice. There is also latex2rtf (<http://en.wikibooks.org/wiki/LaTeX/Export_To_Other_Formats>) but I have never used it.
1
https://tex.stackexchange.com/users/337
1624
1,138
https://tex.stackexchange.com/questions/1625
23
Whenever I insert an image into my PDFTex document (using the code below) it seems to be resized to fit the width of the page. I know I can change this using the scale parameter, but that means I have to play with the scaling factor until it comes out roughly the size I actually created it. ``` \begin{center} \includegraphics[scale=0.75]{ikonos.png} \end{center} ``` Is there a way to display an image without scaling it to the width of the page?
https://tex.stackexchange.com/users/495
How to make images appear at their actual size?
false
If you insert the picture with scale=1, then the picture is at the size you created it. I don't really understand your problem. If you want the picture to appear more centered on the page, there is a solution with makebox \makebox[1\textwidth][c]{\includegraphics[1.2\textwidth]{pic}}. Other than that, you have to create your graphics according to the available text-area. I highly recommend that you export your graphics as vector graphics (pdf,eps). Scaling will then have no influence on the picture quality.
0
https://tex.stackexchange.com/users/632
1626
1,139
https://tex.stackexchange.com/questions/1625
23
Whenever I insert an image into my PDFTex document (using the code below) it seems to be resized to fit the width of the page. I know I can change this using the scale parameter, but that means I have to play with the scaling factor until it comes out roughly the size I actually created it. ``` \begin{center} \includegraphics[scale=0.75]{ikonos.png} \end{center} ``` Is there a way to display an image without scaling it to the width of the page?
https://tex.stackexchange.com/users/495
How to make images appear at their actual size?
true
Simply omit the optional argument and the picture will be inserted 'as is' ``` \begin{center} \includegraphics{ikonos} \end{center} ``` Be warned, however, that `.png` files often don't include the correct information on resolution. This will lead pdfTeX to insert them as 72 dpi images, which may not be desirable. See other questions on apparently 'blocky' images, for example.
23
https://tex.stackexchange.com/users/73
1627
1,140
https://tex.stackexchange.com/questions/1625
23
Whenever I insert an image into my PDFTex document (using the code below) it seems to be resized to fit the width of the page. I know I can change this using the scale parameter, but that means I have to play with the scaling factor until it comes out roughly the size I actually created it. ``` \begin{center} \includegraphics[scale=0.75]{ikonos.png} \end{center} ``` Is there a way to display an image without scaling it to the width of the page?
https://tex.stackexchange.com/users/495
How to make images appear at their actual size?
false
Check the printing resolution of your PNG file. It's given in DPI, dots per inch. If necessary, adjust the resolution using a graphics software, there are free programs available. You might see that the DPI value of the PNG file affects the output. You could use a pdfTeX parameter to specify the resolution of embedded images, if they don't contain that data: `\pdfimageresolution<integer`, like `\pdfimageresolution96`. Alternatively, you may set the resolution by an option: ``` \includegraphics[resolution=300]{filename} ``` or ``` \setkeys{Gin}{resolution=72} ```
18
https://tex.stackexchange.com/users/213
1628
1,141
https://tex.stackexchange.com/questions/588
136
Sometimes the margins need to be changed for a particular page, paragraph, or other section of text. For example, if I'm writing a letter and want the left margin to be almost at the right side of the page for the four lines of my address, or if I am combining prose with poetry and want the poems to be indented relative to the rest of the work. What is the best way to change both left and right margins on the fly?
https://tex.stackexchange.com/users/32
How can I change the margins for only part of the text?
false
With either one of the [`KOMA-Script`](http://ctan.org/pkg/koma-script) classes or the package `scrextend` (which is part of `KOMA-Script`), you can use the `addmargin` environment. ``` \documentclass{article} \usepackage{scrextend} \usepackage[english]{babel} \usepackage{blindtext} \begin{document} \blindtext % Syntax: \begin{addmargin}[<left indentation>]{<indentation>} \begin{addmargin}[4em]{1em} \blindtext \end{addmargin} \blindtext \end{document} ```
36
https://tex.stackexchange.com/users/510
1629
1,142
https://tex.stackexchange.com/questions/1319
976
If you were asked to show examples of beautifully typeset documents in TeX & friends, what would you suggest? Preferably documents available online (I'm aware I could go to a bookstore and find many such documents called 'books'). Extra bonus for documents whose LaTeX source is available. This is not an idle question. Seeing great examples of any craft is both educational and inspiring, let alone explaining why we prefer TeX to Word or other text editors. For instance, I like how Philipp Lehman's [Font Installation Guide](https://texdoc.org/serve/fontinstallationguide/0) looks. I don't know enough LaTeX to realize how much customization was done, but the ToC looks polished. Your nominations, please ...
https://tex.stackexchange.com/users/564
Showcase of beautiful typography done in TeX & friends
false
This is only somewhat related, but Springer lets you search their journals for strings of latex. This can help you understand how to format certain commands (and decide whether it is done well or not): <http://www.latexsearch.com/>
13
https://tex.stackexchange.com/users/nan
1630
1,143
https://tex.stackexchange.com/questions/1198
1
I recently started using fedora with kde and I want to install kile. But, the version of TeX Live in the official repositories is TeX Live 2007 and I want a more complete and recent version. I tried adding the repository for fedora 13 found [here](http://fedoraproject.org/wiki/Features/TeXLive) but it does not work says it is not an rpm package. Has anyone with fedora 13 been able to install kile 2.1 beta 4 with a version of texlive 2009 or 2010? When I installed kile from the official repositories it also installed texlive2007 as a dependency, and I can not install kile compiling configured to use texlive 2009.
https://tex.stackexchange.com/users/589
problem with kile installation in fedora 13 + texlive
false
Try ``` wget http://jnovy.fedorapeople.org/texlive/texlive-f13-release-2009-0.3.fc12.noarch.rpm ``` Then ``` sudo rpm -Uvh texlive-f13-release-2009-0.3.fc12.noarch.rpm ```
3
https://tex.stackexchange.com/users/764
1631
1,144