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/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
I may be a *little* biased, but I'm quite happy with the way my thesis [*Circuit Quantum Electrodynamics*](http://www.levbishop.org/thesis/) turned out. EDIT: I have now [packaged up the source](http://www.levbishop.org/thesis/source) with a brief description of some of the tricks I used (tweaking your latex is a great way to procrastinate when you should be writing a thesis!) If you find the sources useful, or further if you use my format as the basis of your own thesis, I would love to hear from you!
154
https://tex.stackexchange.com/users/627
1347
937
https://tex.stackexchange.com/questions/1291
76
I have the following LaTeX-document: ``` \documentclass[a4paper,11pt]{article} \usepackage[utf8x]{inputenc} \usepackage[ngerman]{babel} \usepackage[T1]{fontenc} \title{Sample} \author{Litb} \begin{document} \maketitle \begin{abstract} This is a report about my praxis phase at the company foo bar which I enjoyed. \end{abstract} \end{document} ``` Much to my frustration, compiling with `pdflatex` creates a document with Bitmap-fonts. The reader's font-list shows that it uses Type3 fonts. If I remove the `fontenc` loading, then I get a PDF using vector-fonts, but I heard that I should keep it, for having native German Umlauts working. Does anyone know how I can get vector fonts with T1, and why it keeps using bitmap fonts if I have that package-load line in it?
https://tex.stackexchange.com/users/580
Why are Bitmap-Fonts used automatically?
false
As for explicitly setting fontenc, I usually just set an inputenc, and write away. On TeXlive 2008 and 2009, this has been doing exactly what I expect so far; and I use both Swedish and German umlauts.
0
https://tex.stackexchange.com/users/257
1348
938
https://tex.stackexchange.com/questions/1344
8
I don't want to change style only. I want to create node that takes 3 numbers and display them with appropriate decorations. For instance: ``` \mynode{5,6,7} ``` Should display node with "a=5", "b=6" and "c=7" inside in 3 lines. **Update:** I have this code: ``` \documentclass{standalone} \usepackage{tikz} \usepackage{amsmath} \newcommand{\statnode}[3]{ \node[rectangle, draw]{ $\begin{aligned} n &= #1 \\ \text{sum} &= #2 \\ \mu &= #3 \end{aligned}$ } } \newcommand{\statnodex}[3]{ node[rectangle, draw]{ $\begin{aligned} n &= #1 \\ \text{sum} &= #2 \\ \mu &= #3 \end{aligned}$ } } \begin{document} \begin{tikzpicture}[ level distance=100, ] \statnode{1}{10}{0.1} child { \statnodex{1}{10}{0.1} }; \end{tikzpicture} \end{document} ``` But: * it is ugly to have 2 commands * it renders incorrectly for some reason
https://tex.stackexchange.com/users/69
How to create custom Tikz nodes?
false
* Put the part, that both commands have in common, into another macro. * use `anchor=north` if you would like to draw the line to the top but not further
2
https://tex.stackexchange.com/users/213
1349
939
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
Admittedly, you asked for LaTeX, not TeX, but the TeXbook is quite nice. Its source is freely available, but you are not allowed to compile it. The source file, [texbook.tex](http://mirrors.ctan.org/systems/knuth/dist/tex/texbook.tex), starts with the following code. ``` % This manual is copyright (C) 1984 by the American Mathematical Society. % All rights are reserved! % The file is distributed only for people to see its examples of TeX input, % not for use in the preparation of books like The TeXbook. % Permission for any other use of this file must be obtained in writing % from the copyright holder and also from the publisher (Addison-Wesley). \loop\iftrue \errmessage{This manual is copyrighted and should not be TeXed}\repeat ```
22
https://tex.stackexchange.com/users/647
1350
940
https://tex.stackexchange.com/questions/1352
13
I have set up the TexLive distribution on my Ubuntu system. What graphics or graph-drawing package should I use to embed bar graphs in my LaTeX documents?
https://tex.stackexchange.com/users/648
How do I draw bar graphs in my LaTeX documents?
false
* TikZ is very a very powerful graphics package and capable of drawing bar charts. Have a look at Figure 22 in [Graphics with PGF and TikZ](http://www.tug.org/TUGboat/Articles/tb28-1/tb88mertz.pdf) at or the [TikZ example gallery](http://www.texample.net/tikz/examples/). * PSTricks is another approach, have a look at the [Chart examples](http://tug.org/PSTricks/main.cgi?file=Examples/Charts/chart).
1
https://tex.stackexchange.com/users/213
1353
941
https://tex.stackexchange.com/questions/1352
13
I have set up the TexLive distribution on my Ubuntu system. What graphics or graph-drawing package should I use to embed bar graphs in my LaTeX documents?
https://tex.stackexchange.com/users/648
How do I draw bar graphs in my LaTeX documents?
false
If you already have the bar charts drawn with something like mathematica, maple or the like, export them as eps or pdf (depending on whether you are using latex or pdflatex) and then use the `\includegraphics` command to include them. Or if you want to draw them inside LaTeX, TikZ is powerful. Or if you want to draw graphs in LaTeX using statistical data you might want to look at Sweave (but this is probably overkill...)
3
https://tex.stackexchange.com/users/215
1354
942
https://tex.stackexchange.com/questions/1345
10
My main TeX template has a whole bunch of commented out packages and options (so that when I need a package, I can just skim my preamble and comment out the right thing, rather than try and remember the exact name of the package). I also have quite a few packages that I load by default, and I'm not sure which of them I really need in any given file. I could go through one by one, commenting them out and seeing what breaks stuff, I suppose, but if it's not slowing stuff down, I might as well not bother... Does having a lot of extra commented out lines slow compilation of tex documents? Does loading packages that aren't used at all slow down compilation?
https://tex.stackexchange.com/users/215
Do commented out options slow down compilation?
false
It's worth avoiding loading packages you don't need, not because it'll slow things down (though I suppose it might, a little bit), but because you want to avoid nasty interactions between packages. It's one of the standard problems of the LaTeX kernel that packages have no real way of isolating themselves from each other (the LaTeX 3 team are addressing this). Quite often, packages work by overloading some part of the LaTeX internals, but no matter how carefully they do that, the end result is more fragile than you'd want. It also means that packages can work, or not work, depending on the order in which they're loaded: the hyperref package, for example, has to be loaded last, but before the packages that have to be loaded after it (confused yet?). Then you have to worry about different versions of packages in different distributions. Also, if you have some problem in your document, possibly as a result of two packages clashing, then the more packages you've loaded, the longer is the process of working out which two packages are squabbling. Myself, I try to limit myself to only those packages which *must* be present in a document. That saves trouble for me, in the future, but also for any co-authors who might have slightly different installations.
7
https://tex.stackexchange.com/users/96
1355
943
https://tex.stackexchange.com/questions/1352
13
I have set up the TexLive distribution on my Ubuntu system. What graphics or graph-drawing package should I use to embed bar graphs in my LaTeX documents?
https://tex.stackexchange.com/users/648
How do I draw bar graphs in my LaTeX documents?
false
I would recommend the pgfplots package. It is based on the earlier mentioned tikz package and produces nice plots. The documentation is full of examples you can often just copy&paste and add your data.
8
https://tex.stackexchange.com/users/632
1356
944
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
I got a directory "Beautiful TeX document" on my computer storing files that are beautiful and I might want to look at for inspiration when designing mine. 1. ArsClassica 2. ClassicThesis 3. the manual of pdfx 4. TKZdoc-linknodes-us All of them can be found in CTAN. `fontinstallationguide` and `tufte-sample-book` have already been mentioned. LaTeX companion 2nd edition has chapter-3 free on-line (http://www.latex-project.org/guides/tlc2-ch3.pdf). I think the typography is one of the finest.
47
https://tex.stackexchange.com/users/337
1358
945
https://tex.stackexchange.com/questions/1352
13
I have set up the TexLive distribution on my Ubuntu system. What graphics or graph-drawing package should I use to embed bar graphs in my LaTeX documents?
https://tex.stackexchange.com/users/648
How do I draw bar graphs in my LaTeX documents?
true
I find that if I am creating a plot or graph, I often need some data munging/analysis capabilities which are decidedly outside the scope of "stuff TeX was designed to be good at". Therefore, I use programming languages other than TeX which are suited to creating plots and have support for exporting the plots to a LaTeX-friendly format such as TikZ code. Some such languages are: * [R](http://www.r-project.org)- with the [tikzDevice](http://cran.r-project.org/web/packages/tikzDevice/index.html) package. * MATLAB- with the [matlab2tikz](http://github.com/nicki/matlab2tikz) script. *Full disclosure: I am a co-author of the tikzDevice for R* Also worth mentioning is Python's [matplotlib](http://matplotlib.sourceforge.net/) which does not render to TikZ code, but has support for letting TeX handle the typesetting of plot text. [gnuplot](http://www.gnuplot.info/) is another program that is worth consideration. TikZ already has some functionality for calling out to gnplot to generate graphs. See section 18.6 "Plotting a Function Using Gnuplot" in the [TikZ Manual](http://tug.ctan.org/tex-archive/graphics/pgf/base/doc/generic/pgf/pgfmanual.pdf) for more details. Another interesting development is that the gnuplot folks are [working on a Lua-based terminal](http://peter.affenbande.org/gnuplot/) that should provide stronger ties to TikZ and LuaTeX. If you have a simple plot and want a LaTeX-only solution, the [pgfplots](http://tug.ctan.org/cgi-bin/ctanPackageInformation.py?id=pgfplots) package mentioned by Martin is probably a good way to go. However, you may find yourself wishing for a more powerful system once things get complex and data needs to be filtered/transformed before plotting. Hopefully the brave new world of LuaTeX will help solve these problems- but I feel that Lua has a ways to go before it approaches the data analysis and visualization capability of a language like R that was developed for these tasks.
11
https://tex.stackexchange.com/users/17
1359
946
https://tex.stackexchange.com/questions/1351
61
(Background: I'm a beginner who will mostly use LaTeX for university articles and reports, but no math. Also, as I reside in Canada, the German typography conventions, which I understand KOMA-Script supports better than LaTeX, are less relevant). I've read that the KOMA-Script package has a lot of improvements for the default document classes. Yet the [manual](http://mirrors.ctan.org/macros/latex/contrib/koma-script/doc/scrguien.pdf "manual")'s length, about 250 pages, is somewhat daunting. I plan to read the chapters I'm interested in anyway but it'd be useful to have some pointers about low hanging fruits. I searched the site and [other](https://tex.stackexchange.com/questions/782/what-are-the-available-documentclass-types-and-their-uses/787#787) answers say KOMA-Script adds improvements but do not delve into details. I'll ask this as a community wiki topic and, since the audience of this site is international, feel free to mention German typography if KOMA-Script is better there.
https://tex.stackexchange.com/users/564
Most useful additions in KOMA-Script?
true
Unlike memoir, the KOMA-Script-classes do not add the functionality of dozens of packages to the LaTeX core - but the KOMA-additions are useful and extremely easy to handle. Roughly in order of the documentation: * Customizable type area with default values that also (contrary to the standard classes) work well for letter- and A4-paper, * Support for arbitrarily chosen font sizes (e.g. 10.5pt), * Ability to change font size mid-document, * Customization of the font attributes of many document elements, * Enhanced `\maketitle` features (e.g. `\subtitle`), * `\addpart`, `\addchap`, and `\addsec` commands producing unnumbered parts, chapters, and sections that are nevertheless included in the table of contents, * Options to include the bibliography, the index etc. in the table of contents, * `parskip` option that is more powerful than the package of the same name, * Configurable footnotes (including some features of the footmisc package), * Option `open=left` to always start chapters on *left* pages, * Consistent formatting of every "listofsomething" (e.g. "chapter gaps" in the "List of Listings"), * Lots of little things.
46
https://tex.stackexchange.com/users/510
1360
947
https://tex.stackexchange.com/questions/1344
8
I don't want to change style only. I want to create node that takes 3 numbers and display them with appropriate decorations. For instance: ``` \mynode{5,6,7} ``` Should display node with "a=5", "b=6" and "c=7" inside in 3 lines. **Update:** I have this code: ``` \documentclass{standalone} \usepackage{tikz} \usepackage{amsmath} \newcommand{\statnode}[3]{ \node[rectangle, draw]{ $\begin{aligned} n &= #1 \\ \text{sum} &= #2 \\ \mu &= #3 \end{aligned}$ } } \newcommand{\statnodex}[3]{ node[rectangle, draw]{ $\begin{aligned} n &= #1 \\ \text{sum} &= #2 \\ \mu &= #3 \end{aligned}$ } } \begin{document} \begin{tikzpicture}[ level distance=100, ] \statnode{1}{10}{0.1} child { \statnodex{1}{10}{0.1} }; \end{tikzpicture} \end{document} ``` But: * it is ugly to have 2 commands * it renders incorrectly for some reason
https://tex.stackexchange.com/users/69
How to create custom Tikz nodes?
false
Would the TikZ "chains" library work for your application? Quick hack of your code to demonstrate: ``` \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{chains} \usetikzlibrary{positioning} \usepackage{amsmath} \newcommand{\statnode}[3]{ \node[rectangle, draw, on chain]{ $\begin{aligned} n &= #1 \\ \text{sum} &= #2 \\ \mu &= #3 \end{aligned}$ } } \newcommand{\statnodex}[3]{ \node[rectangle, draw, on chain=going below, join]{ $\begin{aligned} n &= #1 \\ \text{sum} &= #2 \\ \mu &= #3 \end{aligned}$ } } \begin{document} \begin{tikzpicture}[ start chain, node distance=5mm ] \statnode{1}{10}{0.1}; \statnodex{1}{10}{0.1}; \end{tikzpicture} \end{document} ```
2
https://tex.stackexchange.com/users/17
1361
948
https://tex.stackexchange.com/questions/1351
61
(Background: I'm a beginner who will mostly use LaTeX for university articles and reports, but no math. Also, as I reside in Canada, the German typography conventions, which I understand KOMA-Script supports better than LaTeX, are less relevant). I've read that the KOMA-Script package has a lot of improvements for the default document classes. Yet the [manual](http://mirrors.ctan.org/macros/latex/contrib/koma-script/doc/scrguien.pdf "manual")'s length, about 250 pages, is somewhat daunting. I plan to read the chapters I'm interested in anyway but it'd be useful to have some pointers about low hanging fruits. I searched the site and [other](https://tex.stackexchange.com/questions/782/what-are-the-available-documentclass-types-and-their-uses/787#787) answers say KOMA-Script adds improvements but do not delve into details. I'll ask this as a community wiki topic and, since the audience of this site is international, feel free to mention German typography if KOMA-Script is better there.
https://tex.stackexchange.com/users/564
Most useful additions in KOMA-Script?
false
KOMA-Script brings even more than extended classes: it offers packages to allow other classes to benefit from its features. Here are some of them: * `typearea` provides automatic calculation of layout dimensions according to classical typography, * `scrlayer-scrpage` (`scrpage2` is superseded) is a feature-rich replacement for fancyhdr, * `scrextend` brings various KOMA-features together with non-KOMA classes, * `scrlfile` helps managing package dependencies, * `tocbasic` manages table of contents and lists of tables and figures and so on, * `tocstyle` helps with formatting table of contents and lists of floats.
26
https://tex.stackexchange.com/users/213
1363
949
https://tex.stackexchange.com/questions/1362
37
I know that there's CTAN but I would like to know if any **LaTeX template gallery** (commercial or not) exists on the web. I mean something where I have some PDF examples that I could preview, and a downloadable zip archive with the .tex source file and all the other resources needed (packages, sty, images...). The best would be something like the website templates industry does (Themeforest). I'm a non expert but happy LaTeX user. I use TextMate for editing .tex documents and the MacTeX distribution.
https://tex.stackexchange.com/users/633
LaTeX template gallery
false
I am not sure if this is what you had in mind. The arXiv <http://arxiv.org/> is a huge depository. You can view the .pdf which is the whole idea and the source code is also available. Of course this comes with the disclaimer that you have to decide which examples you want to follow. This won't show you what is good practice. If you find something similar to what you are trying to do you can look and see how it was done in that case.
3
https://tex.stackexchange.com/users/511
1364
950
https://tex.stackexchange.com/questions/1362
37
I know that there's CTAN but I would like to know if any **LaTeX template gallery** (commercial or not) exists on the web. I mean something where I have some PDF examples that I could preview, and a downloadable zip archive with the .tex source file and all the other resources needed (packages, sty, images...). The best would be something like the website templates industry does (Themeforest). I'm a non expert but happy LaTeX user. I use TextMate for editing .tex documents and the MacTeX distribution.
https://tex.stackexchange.com/users/633
LaTeX template gallery
true
You might be interested in the TeX Showcase <http://www.tug.org/texshowcase/>.
20
https://tex.stackexchange.com/users/565
1365
951
https://tex.stackexchange.com/questions/1351
61
(Background: I'm a beginner who will mostly use LaTeX for university articles and reports, but no math. Also, as I reside in Canada, the German typography conventions, which I understand KOMA-Script supports better than LaTeX, are less relevant). I've read that the KOMA-Script package has a lot of improvements for the default document classes. Yet the [manual](http://mirrors.ctan.org/macros/latex/contrib/koma-script/doc/scrguien.pdf "manual")'s length, about 250 pages, is somewhat daunting. I plan to read the chapters I'm interested in anyway but it'd be useful to have some pointers about low hanging fruits. I searched the site and [other](https://tex.stackexchange.com/questions/782/what-are-the-available-documentclass-types-and-their-uses/787#787) answers say KOMA-Script adds improvements but do not delve into details. I'll ask this as a community wiki topic and, since the audience of this site is international, feel free to mention German typography if KOMA-Script is better there.
https://tex.stackexchange.com/users/564
Most useful additions in KOMA-Script?
false
In addition to what has already been mentioned the KOMA bundle provides the letter class scrlttr2 which is a huge improvement over the standard letter class. scrlttr2 is both easy to configure and has a lot of features including the option of generating letters from address lists.
16
https://tex.stackexchange.com/users/565
1366
952
https://tex.stackexchange.com/questions/940
105
TeX and LaTeX are widely used in Computer Science. What other academic disciplines or professionals use it?
https://tex.stackexchange.com/users/356
What professions use TeX/LaTeX besides CS?
false
[Literate programmers](http://en.wikipedia.org/wiki/Literate_programming) use TeX for commenting their code, and many more simply use TeX for documentation, especially if the program is math-heavy.
19
https://tex.stackexchange.com/users/70
1367
953
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?
true
Uppercase epsilon is E. ``` \begin{equation} \delta % ok \Delta % ok \epsilon % ok E % ok \end{equation} ```
29
https://tex.stackexchange.com/users/565
1369
954
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
To quote from The LaTeX Companion (p. 527), > > Those capital Greek letters not present in this table are the letters that have the same appearance as some Latin letter. Similarly, the list of lowercase Greek letters contains no omicron because it would be identical in appearance to the Latin *o*. Thus, in practice, the Greek letters that have Latin look-alikes are not used in mathematical formulas. > > > So basically, nobody would use a capital epsilon in a formula because it'd be visually indistinguishable from E. If this bothers you, you could define the missing macros for Greek letters, e.g. ``` \newcommand{\Alpha}{A} \newcommand{\Beta}{B} \newcommand{\Epsilon}{E} ``` and so on.
33
https://tex.stackexchange.com/users/125
1370
955
https://tex.stackexchange.com/questions/940
105
TeX and LaTeX are widely used in Computer Science. What other academic disciplines or professionals use it?
https://tex.stackexchange.com/users/356
What professions use TeX/LaTeX besides CS?
false
I use it for any important, customer facing documentation for our software company. That means, all of our contracts, product catalogs and product documentation. The fact that you can throw it into source control so nicely is huge! It's the only truly cross-platform tool that I know of, outside of InDesign. Also, nothing on earth does cross-referencing or indexing nearly as well. Finally, for our product catalog, I use the DataTool. I'm able to save the product pricing spreadsheet out of Numbers or Excel and create 12 specific versions our price sheet. We're a small company and there is no way we would price our products or have as many specific kinds of dealers without LaTeX, just because there is no other, efficient way to do what we do with it. Every now and again, we think, "Is there something easier that the rest of our staff would pick up more readily?" We always come back to LaTeX. Sometimes, it's a little bit hard to do a really complicated and important thing.
23
https://tex.stackexchange.com/users/659
1371
956
https://tex.stackexchange.com/questions/1372
5
How to typeset the "Re" of `Re(a+ib)` correctly inside an equation in LaTeX? I tried using `\mathcal` and `\mathbb`, but it does not give me the typical rounded R. I already saw in other documents.
https://tex.stackexchange.com/users/660
Typeset Re(a+ib)
true
Use $\Re(a + ib)$
16
https://tex.stackexchange.com/users/323
1373
957
https://tex.stackexchange.com/questions/1372
5
How to typeset the "Re" of `Re(a+ib)` correctly inside an equation in LaTeX? I tried using `\mathcal` and `\mathbb`, but it does not give me the typical rounded R. I already saw in other documents.
https://tex.stackexchange.com/users/660
Typeset Re(a+ib)
false
Might `\mathfrak{Re}` be what you're looking for?
2
https://tex.stackexchange.com/users/125
1374
958
https://tex.stackexchange.com/questions/1375
112
I found this page with some examples: <http://en.wikibooks.org/wiki/LaTeX/Algorithms_and_Pseudocode> I'm wondering which one to use. Any suggestions? I'm using other packages too so whichever is less likely to interfere with them is better for me.
https://tex.stackexchange.com/users/572
What is a good package for displaying algorithms?
false
Personally, I favour `algpseudocode` from the [**`algorithmicx`**](http://www.ctan.org/tex-archive/macros/latex/contrib/algorithmicx/) (note the trailing **`x`**!) package. With a bit of setup, this can be harnessed to create beautiful pseudocode. This was produced by the following code: ``` \begin{algorithm} \caption{Counting mismatches between two packed \DNA{} strings \label{alg:packed-dna-hamming}} \begin{algorithmic}[1] \Require{$x$ and $y$ are packed \DNA{} strings of equal length $n$} \Statex \Function{Distance}{$x, y$} \Let{$z$}{$x \oplus y$} \Comment{$\oplus$: bitwise exclusive-or} \Let{$\delta$}{$0$} \For{$i \gets 1 \textrm{ to } n$} \If{$z_i \neq 0$} \Let{$\delta$}{$\delta + 1$} \EndIf \EndFor \State \Return{$\delta$} \EndFunction \end{algorithmic} \end{algorithm} ``` And used the following setup (this is just an example to replicate the above; you can of course use your own setup): ``` \usepackage{fontspec} \setmainfont{Hoefler Text} \newcommand*\DNA{\textsc{dna}} \newcommand*\Let[2]{\State #1 $\gets$ #2} \algrenewcommand\alglinenumber[1]{ {\sf\footnotesize\addfontfeatures{Colour=888888,Numbers=Monospaced}#1}} \algrenewcommand\algorithmicrequire{\textbf{Precondition:}} \algrenewcommand\algorithmicensure{\textbf{Postcondition:}} ``` To get the **`end`**-less pseudocodes, I included the package as follows: ``` \usepackage[noend]{algpseudocode} ``` --- The above pseudo code is nested inside an `algorithm` float environment. This environment isn’t part of `algorithmicx`. Instead, you need to load the package `algorithm` to get it. To produce a list of all algorithms, you can use ``` \listofalgorithms ``` For further information, see the section “The `algorithm` Environment” in the documentation of the [`algorithms`](http://www.ctan.org/tex-archive/macros/latex/contrib/algorithms/) package. But I want to stress again that (except for the float environment) the `algorithmicx` package is superior to `algorithms`.
101
https://tex.stackexchange.com/users/42
1376
959
https://tex.stackexchange.com/questions/93
18
What do I need in order to use TeX on Windows as an eventual replacement for Word? What software is available for Windows for WYSIWYG editing of TeX files?
https://tex.stackexchange.com/users/91
What do I need in order to use TeX on Windows as an eventual replacement for Word?
false
I would not go for a wysiwyg solution. It seems to be easier on the beginning but as soon as you get familiar with the syntax then you realize how much faster you can go with an *IDE*. On windows I usually go with the TeXnicCenter/MikTeX combo.
0
https://tex.stackexchange.com/users/331
1377
960
https://tex.stackexchange.com/questions/1378
69
In an equation, I want to display three points like "...", but instead of horizontally, they should be diagonally. I'm sure there must be a command to do that, but a google search did not really help. Any idea?
https://tex.stackexchange.com/users/660
How to type three points diagonally?
true
The command is called `\ddots`. See also [How to look up a symbol or identify a math symbol or character?](https://tex.stackexchange.com/questions/14/how-to-look-up-a-math-symbol) (esp. [detexify](http://detexify.kirelabs.org/classify.html)).
69
https://tex.stackexchange.com/users/85
1379
961
https://tex.stackexchange.com/questions/1380
40
I am using several bibtex files, dedicated to several topics. But some references are common to several topics and then appear in several of my bibtex files. Currently, I am writing a document dealing with several of these topics, and need to use several of these bibtex files at the same time. Obviously, I get the error message when compiling with bibtex: "repeated entry". I would like to avoid this error message, but without removing my entries from the bibtex files, as I need them when compiling only with one of them (when writing articles on one topic only), and without merging my bibtex files.
https://tex.stackexchange.com/users/546
how to avoid bibtex error message "repeated entry" for an entry appearing in several bibtex files?
false
The easiest solution is to have *one* BiBTeX file only. And by that, I really mean *one* BiBTeX file on your system for your whole bibliography. As far as I understand this is actually the intended usage, and there are several good softwares out there that make managing a bibliography easy. Much easier, in fact, than having to manage separate bibliographies. This is also why BiBTeX only includes those references that are actually used, and not just the whole file.
18
https://tex.stackexchange.com/users/42
1381
962
https://tex.stackexchange.com/questions/1380
40
I am using several bibtex files, dedicated to several topics. But some references are common to several topics and then appear in several of my bibtex files. Currently, I am writing a document dealing with several of these topics, and need to use several of these bibtex files at the same time. Obviously, I get the error message when compiling with bibtex: "repeated entry". I would like to avoid this error message, but without removing my entries from the bibtex files, as I need them when compiling only with one of them (when writing articles on one topic only), and without merging my bibtex files.
https://tex.stackexchange.com/users/546
how to avoid bibtex error message "repeated entry" for an entry appearing in several bibtex files?
false
I think, you are looking for the package [bibtopic](http://mirror.ctan.org/macros/latex/contrib/bibtopic/bibtopic.pdf). But afaik it's not up to date (2006). I would also recommend to create one BiBTeX file. If you want your bibliography sorted by subject, you could use the multibib-package.
2
https://tex.stackexchange.com/users/642
1382
963
https://tex.stackexchange.com/questions/1383
8
I have the code: ``` \maketitle \begin{abstract}Some text \end{abstract} \newpage \section{some section} ``` But when I comment out `\maketitle` the document shows `\section{some section}`, not the abstract nor seem to use the command `\newpage` because "some section" is displayed on page 1. When uncommenting `\maketitle` everything is displayed correctly. How do I properly remove the maketitle and still having the abstract shown? This example shows the issue (at least for me): ``` \documentclass[12pt]{amsart} \title{} \author{} \begin{document} %\maketitle \begin{abstract} Abstract \end{abstract} \section*{Acknowledgement} Text \end{document} ```
https://tex.stackexchange.com/users/nan
Abstract not showing up when removing \maketitle
true
Both the abstract environment and the `\maketitle` command are defined by the document class. So, tell us at least which class you're using. Furthermore, post a small compilable example showing the problem. Here's such a compilable example using your piece of code but without problem, demonstrating that the cause must be somewhere else but not in those lines: ``` \documentclass{article} \title{Test} \author{Anonymous} \begin{document} %\maketitle \begin{abstract}Some text \end{abstract} \newpage \section{some section} \end{document} ``` **Update:** in your edited post I can see you're using `amsart`. Here `\maketitle` is indeed required to show the abstract. But as a workaround you could use the internal command `\@setabstract`. Here it's inserted into your example: ``` \documentclass[12pt]{amsart} \title{} \author{} \begin{document} %\maketitle \begin{abstract} Abstract \end{abstract} \makeatletter \@setabstract \makeatother \section*{Acknowledgement} Text \end{document} ``` The output shows the abstract.
8
https://tex.stackexchange.com/users/213
1384
964
https://tex.stackexchange.com/questions/1378
69
In an equation, I want to display three points like "...", but instead of horizontally, they should be diagonally. I'm sure there must be a command to do that, but a google search did not really help. Any idea?
https://tex.stackexchange.com/users/660
How to type three points diagonally?
false
According to <https://texfaq.org/FAQ-mathlips> > > The mathdots package (besides fixing up the behaviour of (La)TeX \ddots and \vdots when the font size changes) provides an “inverse diagonal” ellipsis \iddots > > > That is, `\iddots` is three dots sloping forwards while `\ddots` is three dots sloping backwards.
34
https://tex.stackexchange.com/users/143
1386
965
https://tex.stackexchange.com/questions/1383
8
I have the code: ``` \maketitle \begin{abstract}Some text \end{abstract} \newpage \section{some section} ``` But when I comment out `\maketitle` the document shows `\section{some section}`, not the abstract nor seem to use the command `\newpage` because "some section" is displayed on page 1. When uncommenting `\maketitle` everything is displayed correctly. How do I properly remove the maketitle and still having the abstract shown? This example shows the issue (at least for me): ``` \documentclass[12pt]{amsart} \title{} \author{} \begin{document} %\maketitle \begin{abstract} Abstract \end{abstract} \section*{Acknowledgement} Text \end{document} ```
https://tex.stackexchange.com/users/nan
Abstract not showing up when removing \maketitle
false
If you clear the `\title` and `\author` fields, as you did in your minimal example, you can use `\maketitle` to output the abstract without any title headings.
1
https://tex.stackexchange.com/users/169
1387
966
https://tex.stackexchange.com/questions/1380
40
I am using several bibtex files, dedicated to several topics. But some references are common to several topics and then appear in several of my bibtex files. Currently, I am writing a document dealing with several of these topics, and need to use several of these bibtex files at the same time. Obviously, I get the error message when compiling with bibtex: "repeated entry". I would like to avoid this error message, but without removing my entries from the bibtex files, as I need them when compiling only with one of them (when writing articles on one topic only), and without merging my bibtex files.
https://tex.stackexchange.com/users/546
how to avoid bibtex error message "repeated entry" for an entry appearing in several bibtex files?
false
**Answer** I recommend using Norman Ramsey's [nbibtex](http://www.cs.tufts.edu/~nr/nbibtex/) for this. The basic idea is that you run the `nbibtex` command instead of Bibtex, which uses the argument to `\cite` as a search query, and goes looking for the best match for that query and puts it in the `.bbl` file it creates. **Another possibility** Something I do with my clients is replace the `\bibliography` command with the contents of the `*.bbl` file. Then, magically, you don't need to run Bibtex on that Latex document ever again. The downside of doing this is that if you find errors in your reference list, or if you add items, that magic won't propagate changes back to your `*.bib` files. Breaking up bibliography files into a number of separate `*.bib` files is A Good Thing, IMO, since it allows you to work with other people on putting together good bibliography files: no one except you will want to work with the contents of `AllMyReferences.bib` file. **Old, lost code** I wrote some code back in my days as a doctoral student that did the following: 1. Looked through the `*.aux` file for Bibtex keys, where I generally followed the convention author:key in citations; 2. Searched `BIBPATH` for `*.bib` files that might match these keys, using the convention to narrow the search where it was used; 3. Looked in those files either for exact matches for those keys, and also in special `alternate-key` fields in Bibtex entries, to allow one key to be used 4. Report problems where there are (i) keys not matching sources, (ii) several sources for some key (you need to check for errors, ideally this code would have been able to tell whether two citations are identical, but it didn't do that), (iii) one source referenced by several keys (each document should be consistent in the way it cites sources) 5. Create a `.bib` file from what is found, ensuring that each citation matches exactly one reflist entry, which might mean several occurrences of a single source if it is cited by more than one key, and a `.aux` key, which cites one key for each source. 6. Run Bibtex on the `.aux/.bib` file to create the `.bbl` file to be used by the `\thebibliography` program. I don't think this approach makes much sense now given the availability of `nbibtex`, which is more usable and more robust, but the code did do more in the way of sanity checks of the Bibtex database, which `nbibtex` doesn't do with the `--permissive` option, and `nbibtex` isn't really useful for multiple bibliographies without it.
8
https://tex.stackexchange.com/users/175
1389
967
https://tex.stackexchange.com/questions/1385
19
It would be very useful to have a shared bib file across my research group which can be kept up-to-date by any member of the group. Are there any tools for this sort of thing? I know about [Mendeley](http://mendeley.com) which allows bib sharing and syncing. Are there any other tools?
https://tex.stackexchange.com/users/143
Are there any tools for collaborative bib files?
false
[nbibtex](http://www.cs.tufts.edu/~nr/nbibtex/). I discuss shared .bib files and why nbibtex is great in [another answer](https://tex.stackexchange.com/questions/1380/how-to-avoid-bibtex-error-message-repeated-entry-for-an-entry-appearing-in-seve/1389#1389).
2
https://tex.stackexchange.com/users/175
1391
968
https://tex.stackexchange.com/questions/1357
27
When I use TikZ tree with nodes with rounded corners, the connecting lines do not touch the nodes (near corners) but end where would rectangle end. Is there an easy way around it? ``` \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} [sibling distance=100] \node[rectangle, draw, rounded corners = 3]{ } child { node { } } child { node { } } ; \end{tikzpicture} \end{document} ```
https://tex.stackexchange.com/users/69
Rounded corners in TikZ trees.
false
It looks a bit different, but you could use the `rounded rectangle` shape: ``` \usetikzlibrary{shapes.misc} \begin{tikzpicture} [sibling distance=100] \node[rounded rectangle, draw]{ } child { node { } } child { node { } } ; \end{tikzpicture} ``` This gives Note that the sides are now complete half-circles, not two quarter-circles joined by a line.
13
https://tex.stackexchange.com/users/83
1392
969
https://tex.stackexchange.com/questions/1390
154
I've read various answers to questions on here that suggest the original Computer Modern fonts have been superseded. Sometimes it is suggested we use the `cm-super` package, sometimes that we instead use latin modern fonts. Which is better? Which is easier to get working? (getting new fonts to work in LaTeX seems a daunting task...) Which look better?
https://tex.stackexchange.com/users/215
Latin Modern vs cm-super?
true
Latin Modern is derived from cm, cm-super also. * cm-super is a vectorization of cm bitmap fonts but mainly automatically done. * The vectorization of Latin Modern is handmade. * Latin Modern has revised metrics. * Latin Modern provides more glyphs, especially diacritical characters. There are 72 text fonts, each of them containts more than 700 glyphs. In addition there are 20 math fonts. cm-super comes with more fonts but fewer glyphs, check its README file. * Latin Modern development goes on. **Update:** Now there's also a [Latin Modern Math font](http://www.gust.org.pl/gustnews/news-lm-math-en?set_language=en), available since July 2011.
137
https://tex.stackexchange.com/users/213
1393
970
https://tex.stackexchange.com/questions/1388
40
Is it possible to make `TikZ` matrix cells span multiple rows/columns, like they can in LaTeX tables using `\multirow` or `\multicolumn`? Specifically, I'd like to typeset something like the following in a `TikZ` matrix: ``` header1 longcell1 longcell2 header2 cellA cellB cellC cellD header3 X Y Z W ```
https://tex.stackexchange.com/users/673
Multirow/multicolumn cells in TikZ matrices?
false
You could use the anchors of the matrix to place a multicolumn node over the matrix. An approach would be to nest matrices, but afaik TikZ doesn't support that yet.
3
https://tex.stackexchange.com/users/213
1394
971
https://tex.stackexchange.com/questions/1390
154
I've read various answers to questions on here that suggest the original Computer Modern fonts have been superseded. Sometimes it is suggested we use the `cm-super` package, sometimes that we instead use latin modern fonts. Which is better? Which is easier to get working? (getting new fonts to work in LaTeX seems a daunting task...) Which look better?
https://tex.stackexchange.com/users/215
Latin Modern vs cm-super?
false
In addition to what Stefan wrote: * Both are easy to use in any modern TeX distribution. The distributor has taken care of this for you * cm-super takes up more space in your distribution, but in my testing lmodern generally takes up more space in your generated PDF. This is because lmodern uses font subroutines, which all must be put in the PDF, even if you only use a subset of glyphs * lmodern is available in the same optical sizes as computer modern, cm-super is available in more optical sizes (this 'feature' of cm-super switched is off by using the fix-cm package (highly recommended)) * With cm-super it's recommended to use the fix-cm package to fix a lot of broken design decisions in cm-super (and in addition this makes the final PDF a bit smaller) * Neither cm-super or lmodern are as well-hinted (for onscreen reading) as the bluesky computer modern fonts. Hinting is simply too hard to get right and the lmodern developers don't focus on it. Both cm-super and lmodern each have their hinting flaws, and I'm not sure which I prefer * As I understand it, neither cm-super or lmodern will give exactly identical page breaks as the traditional computer modern, but lmodern will be closer
61
https://tex.stackexchange.com/users/627
1396
972
https://tex.stackexchange.com/questions/1390
154
I've read various answers to questions on here that suggest the original Computer Modern fonts have been superseded. Sometimes it is suggested we use the `cm-super` package, sometimes that we instead use latin modern fonts. Which is better? Which is easier to get working? (getting new fonts to work in LaTeX seems a daunting task...) Which look better?
https://tex.stackexchange.com/users/215
Latin Modern vs cm-super?
false
One more addition: cm-super contains Cyrillic fonts and lmodern doesn't.
31
https://tex.stackexchange.com/users/85
1397
973
https://tex.stackexchange.com/questions/940
105
TeX and LaTeX are widely used in Computer Science. What other academic disciplines or professionals use it?
https://tex.stackexchange.com/users/356
What professions use TeX/LaTeX besides CS?
false
I proofread someone's theology dissertation which was written in LaTeX -- I'm sure the packages it used for displaying Hebrew and polytonic Greek were simpler than entering those characters in a word processor.
14
https://tex.stackexchange.com/users/677
1399
974
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?
false
XeTeX has recently been enhanced with microtypography extensions as well, but it's still in a beta phase.
2
https://tex.stackexchange.com/users/170
1400
975
https://tex.stackexchange.com/questions/1401
21
A colleague of mine is submitting a research proposal to one of the UK research councils, whose guidelines stipulate a minimum font-size of 10pt. My colleague, who is of course using LaTeX, uses the `amsart` document class with the `10pt` option (which, in fact, I think it's the default). Looking at the `.log` file one sees that the 10pt version of the fonts are indeed being loaded. However word has come back that the proposal falls foul of the research council's guidelines because the font-size in the PDF file that my colleague submitted is actually 9.6pt! Alas, no information has been given as to how this font-size was determined. ### Questions 1. When is 10pt *not* really 10pt? 2. And how can one determine the true font size of a LaTeX-generated PDF document? Thanks in advance! ### Added This just in: it seems that the culprit was the default scaling of `helvetica`, which according to [the PSNFSS2e documentation](http://www.ctan.org/tex-archive/macros/latex/required/psnfss/psnfss2e.pdf) (PDF file) is smaller than 1. This still leaves the second question.
https://tex.stackexchange.com/users/18
How to determine the true size of a font?
false
Adobe Acrobat professional: Tools -> Advanced Editing -> Touchup text tool. Select text, right click -> Properties. Text tab, Font Size box.
5
https://tex.stackexchange.com/users/627
1402
976
https://tex.stackexchange.com/questions/1385
19
It would be very useful to have a shared bib file across my research group which can be kept up-to-date by any member of the group. Are there any tools for this sort of thing? I know about [Mendeley](http://mendeley.com) which allows bib sharing and syncing. Are there any other tools?
https://tex.stackexchange.com/users/143
Are there any tools for collaborative bib files?
false
You could try [CiteULike](http://www.citeulike.org/). I use it as my primary reference database; it makes it easy to add an article by automatically scraping journal webpages. It exports to BibTeX (very easily; you can bookmark a particular URL which will download the bib file). Moreover, it has a 'groups' feature where multiple people can share a common library.
2
https://tex.stackexchange.com/users/490
1403
977
https://tex.stackexchange.com/questions/1385
19
It would be very useful to have a shared bib file across my research group which can be kept up-to-date by any member of the group. Are there any tools for this sort of thing? I know about [Mendeley](http://mendeley.com) which allows bib sharing and syncing. Are there any other tools?
https://tex.stackexchange.com/users/143
Are there any tools for collaborative bib files?
false
We are simply using svn + JabRef + standardised JabRef settings; works well. JabRef automatically enforces a consistent formatting and ordering of the Bibtex entries. After saving the file in JabRef, you can easily use "svn diff" to see what was changed, and commit the changes if everything looks good. The only issue is that JabRef tries to support collaboration as well, which doesn't make much sense if you are using svn. Therefore it seems to be easiest to *close the file in JabRef before running "svn up"* so that JabRef doesn't try to do anything clever.
3
https://tex.stackexchange.com/users/100
1404
978
https://tex.stackexchange.com/questions/1390
154
I've read various answers to questions on here that suggest the original Computer Modern fonts have been superseded. Sometimes it is suggested we use the `cm-super` package, sometimes that we instead use latin modern fonts. Which is better? Which is easier to get working? (getting new fonts to work in LaTeX seems a daunting task...) Which look better?
https://tex.stackexchange.com/users/215
Latin Modern vs cm-super?
false
As Lev Bishop explained, both cm-super and lmodern have problems with hinting; the PDF files may look bad in some PDF viewers. Therefore I'd suggest that you consider the third option as well: `\usepackage{ae}`. Looks good on screen and works everywhere without installing anything new.
10
https://tex.stackexchange.com/users/100
1406
979
https://tex.stackexchange.com/questions/1405
45
I'd like to fill the cells of a table with a background color. How can this be done?
https://tex.stackexchange.com/users/97
How do I fill table cells with a background color?
true
The [xcolor](http://www.ctan.org/tex-archive/macros/latex/contrib/xcolor/) provides support for coloring table rows in a variety of patterns. The [colortbl](http://www.ctan.org/tex-archive/macros/latex/contrib/colortbl/) can color rows, columns, cells and rules. There is a nice [article](http://www.tug.org/pracjourn/2007-1/mori/mori.pdf) by Lapo Filippo Mori in the PracTeX Journal that describes the usage of both packages. Scroll down to section 4.
38
https://tex.stackexchange.com/users/17
1407
980
https://tex.stackexchange.com/questions/133
73
I've got data that I need to include in a table, but there's a lot if it. I've played with the font size and table formatting as much as I can, but the table still won't fit on the page. Is there anyway to make a table that spans multiple pages with LaTeX?
https://tex.stackexchange.com/users/93
How can I make a table that takes up more than a single page?
false
I would recommend using the [`xtab`](https://ctan.org/pkg/xtab) package, which is designed as a improvement of the [`supertabular`](https://ctan.org/pkg/supertabular) package.
13
https://tex.stackexchange.com/users/18
1409
981
https://tex.stackexchange.com/questions/1401
21
A colleague of mine is submitting a research proposal to one of the UK research councils, whose guidelines stipulate a minimum font-size of 10pt. My colleague, who is of course using LaTeX, uses the `amsart` document class with the `10pt` option (which, in fact, I think it's the default). Looking at the `.log` file one sees that the 10pt version of the fonts are indeed being loaded. However word has come back that the proposal falls foul of the research council's guidelines because the font-size in the PDF file that my colleague submitted is actually 9.6pt! Alas, no information has been given as to how this font-size was determined. ### Questions 1. When is 10pt *not* really 10pt? 2. And how can one determine the true font size of a LaTeX-generated PDF document? Thanks in advance! ### Added This just in: it seems that the culprit was the default scaling of `helvetica`, which according to [the PSNFSS2e documentation](http://www.ctan.org/tex-archive/macros/latex/required/psnfss/psnfss2e.pdf) (PDF file) is smaller than 1. This still leaves the second question.
https://tex.stackexchange.com/users/18
How to determine the true size of a font?
true
[PDFedit](http://pdfedit.petricek.net/en/download.html) will be able tell you what the size of particular bit of text in a PDF document is.
9
https://tex.stackexchange.com/users/89
1413
983
https://tex.stackexchange.com/questions/1412
5
I've tried using both `algorithm2e` and `algorithmic` to generate a list of algorithms, but they both do it this way: ``` List of Algorithms 1 BFS ..... 1 2 DFS ..... 2 ... ``` When I'd like to it to be: ``` List of Algorithms Algorithm 1 BFS ..... 1 Algorithm 2 DFS ..... 2 ... ``` The packages being used: ``` \documentclass[pnumabnt,normaltoc,capchap,floatnumber=continuous]{abnt} \usepackage[bibjustif,abnt-etal-cite=2,abnt-full-initials=yes]{abntcite} \usepackage[toc,page]{modelo/tex/appendix} \usepackage[portuguese,brazilian,portuges]{babel} \usepackage[utf8]{inputenc} \usepackage{abnt-alf} \usepackage{graphicx} \usepackage{multicol} \usepackage{listings} \usepackage{booktabs} \usepackage{amsmath} \usepackage{amsthm} \usepackage{eucal} \usepackage{amssymb} \usepackage{mathrsfs} \usepackage[portugues]{algorithm2e} ```
https://tex.stackexchange.com/users/572
Is it possible to change the way a list of algorithms is generated to include the word "Algorithm" before each element in the list?
false
Isn't it obvious, that below the heading **List of Algorithms** only algorithms follow? Why mention 20 times *Algorithm* again? One could start by redefining the counter presentation like ``` \renewcommand*{\thealgocf}{Algorithm~\arabic{algocf}} ``` But the list of contents requires modification, this could be done with a package like `tocloft` or `titletoc` or `tocbasic`. For consistency it may be following to do the same for figures, tables, sections and so on. That seems odd to me.
2
https://tex.stackexchange.com/users/213
1414
984
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
You can compile file `.tex` from the command line by just typing `pdflatex file.tex`, assuming all your resources (graphics, style files) are where the `.tex` file says they are. If you can assume that then you could just write a shell script that checks the directory for all `.tex` files then, if the timestamp on the corresponding `.pdf` file is older then run `pdflatex` on it. This should just be a couple of lines of shell code. Like Caramdir suggests, the people at superuser can help you write that script. Still, chances are the compile will break. So then you have to worry about getting those error messages back to you and not trying to re-compile it again and again.
1
https://tex.stackexchange.com/users/686
1415
985
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
true
You can add a Folder Action to your dropbox: when something new arrives it'll fire off an AppleScript to fire off the commands to compile the file. In Finder, right click on the folder. Go to Services and then Folder Actions Setup. You can then select which action (you can add yours to show up in the options).
6
https://tex.stackexchange.com/users/19
1416
986
https://tex.stackexchange.com/questions/1325
163
I'd like to be able to use `latexdiff` with git. At the moment I have an alias in my `.gitconfig` file for a word-based diff: ``` [alias] wdiff = diff --color-words ``` but is it possible to make an alias that will use `latexdiff` then compile the output and open the created dvi/pdf file? Probably the best approach to this is using `git difftool`, but has anyone already made an appropriate script?
https://tex.stackexchange.com/users/422
Using latexdiff with git
false
Do you mean something like the following? **~/bin/git-latexdiff** ``` #!/bin/bash TMPDIR=$(mktemp -d /tmp/git-latexdiff.XXXXXX) latexdiff "$1" "$2" > $TMPDIR/diff.tex pdflatex -interaction nonstopmode -output-directory $TMPDIR $TMPDIR/diff.tex evince $TMPDIR/diff.pdf rm -rf $TMPDIR ``` **~/.gitconfig** ``` [difftool.latex] cmd = git-latexdiff \"$LOCAL\" \"$REMOTE\" [difftool] prompt = false [alias] ldiff = difftool -t latex ``` You can then use the diff by running `git ldiff HEAD~1`, for example.
75
https://tex.stackexchange.com/users/673
1417
987
https://tex.stackexchange.com/questions/1418
66
I'd like to typeset documents using the '[Grid system](http://en.wikipedia.org/wiki/Grid%5F%28page%5Flayout%29)' of page layout. Good examples are on pages 40-53 of [this document](http://www.vignelli.com/canon.pdf). The [textpos](http://www.ctan.org/tex-archive/help/Catalogue/entries/textpos.html) package is helpful for this, but two additional features would be useful: 1. Automatic flow of text across (arbitrarily placed) columns / textpos blocks. 2. Vertical line spacing enforced to be an integer multiple of a base line spacing, even when interrupted (for example) by an equation of arbitrary height. Any ideas as to how either or both of these could be accomplished?
https://tex.stackexchange.com/users/45
Grid System in LaTeX
false
See the grid package <http://ctan.org/pkg/grid>.
3
https://tex.stackexchange.com/users/565
1419
988
https://tex.stackexchange.com/questions/1352
13
I have set up the TexLive distribution on my Ubuntu system. What graphics or graph-drawing package should I use to embed bar graphs in my LaTeX documents?
https://tex.stackexchange.com/users/648
How do I draw bar graphs in my LaTeX documents?
false
I found [octave](http://www.gnu.org/software/octave/) the most convenient tool (quick and easy to learn the required syntax) for creating various charts, being not familiar with more advanced statistics software, but having used MATLAB in school.
2
https://tex.stackexchange.com/users/690
1421
989
https://tex.stackexchange.com/questions/1420
28
I think I've seen a script for converting mediawiki syntax to Latex. Also, in case there are more than one solution for this, it might be nice to summarize them here.
https://tex.stackexchange.com/users/690
How to convert mediawiki syntax to latex?
false
[This](http://nullprogram.com/blog/2007/09/23/) perl script seems to be the script I was thinking of.
3
https://tex.stackexchange.com/users/690
1422
990
https://tex.stackexchange.com/questions/1420
28
I think I've seen a script for converting mediawiki syntax to Latex. Also, in case there are more than one solution for this, it might be nice to summarize them here.
https://tex.stackexchange.com/users/690
How to convert mediawiki syntax to latex?
false
[Javalatex](http://code.google.com/p/javalatex/) seems like a very interesting project, and should have support for this. (Haven't tried them yet, but will report experience when I have)
2
https://tex.stackexchange.com/users/690
1424
991
https://tex.stackexchange.com/questions/1423
215
Say I made a beamer presentation and I want to print it out. Is there a nice way to make beamer ignore the pauses so that I don't get lots of pages with duplicate information? Of course there are some things one could do with find & replace, but I would prefer a more sophisticated solution if such exists.
https://tex.stackexchange.com/users/166
Is there a nice way to compile a beamer presentation without the pauses?
false
Add the `handout` class option: ``` \documentclass[handout]{beamer} ``` Note that this will also remove the navigation symbols, which should be a good thing for your handout.
22
https://tex.stackexchange.com/users/510
1425
992
https://tex.stackexchange.com/questions/1423
215
Say I made a beamer presentation and I want to print it out. Is there a nice way to make beamer ignore the pauses so that I don't get lots of pages with duplicate information? Of course there are some things one could do with find & replace, but I would prefer a more sophisticated solution if such exists.
https://tex.stackexchange.com/users/166
Is there a nice way to compile a beamer presentation without the pauses?
true
Use the `handout` mode: ``` \documentclass[handout]{beamer} ``` It collapses each frame to one page. Sometimes its method of collapsing needs a little fine-tuning, but it's generally okay. For more on that fine-tuning, read about mode-specific instructions in the beamer user guide. As lockstep says, it also sets up some other defaults such as removing the navigation symbols (which, after all, don't make sense on a handout version). All of these changes are customisable. The sections to read in the beamer user guide are in Part IV (Creating Supporting Material), in particular section 21 (Creating Handouts and Lecture Notes). Section 21.3 has the details on how to achieve the fine-tuning using *mode specifications*. Mikael included [this link](https://mathoverflow.net/questions/5893/beamer-printout) to a version of this question on MathOverflow. As I answered that question, and I think that it's good to keep TeX-related stuff here rather than there, I'm copying my answer to that question below, with very minor modification, which deals with variants of the basic answer. 1. Print it 4-up using the pgfpages package (from the pgf/TikZ meta-package). If you want to distinguish the pages, don't change the background colour (waste of ink), rather use pgfpages to put a border around each frame (this isn't one of the standard page-type declarations, but it isn't hard and I can make mine available if anyone wants it). 2. It's possible to change the type of the output (between beamer, handout, trans, or article) without modifying the file. The trick is to put the main document in one file, say `geometry.tex` but *without* the documentclass declaration. Then you create a new file for each type with just the documentclass declaration. For example, `geometry.beamer.tex` could contain: ``` \documentclass[12pt,t,xcolor=dvipsnames,ignorenonframetext]{beamer} \input{geometry.tex} ``` whilst `geometry.handout.tex` might contain ``` \documentclass[12pt,xcolor=dvipsname,ignorenonframetext,handout,% notes=only% ]{beamer} \input{geometry.tex} ``` and `geometry.article.tex` might be ``` \documentclass[a4paper,10pt]{article} \usepackage[envcountsect]{beamerarticle} \setjobnamebeamerversion{geometry.beamer} \input{geometry.tex} ``` Not only does this make sure that you are always compiling the correct version of the document, it also means that if you use a version control system then it doesn't keep complaining about you modifying the file just because you change the output type. 3. If you are strong in the ways of beamer and TeX, you can go one step further. I use beamer for lectures which means that one single file contains the beamer versions and the handout versions of nearly 30 lectures. To produce a given version of a given lecture, I need to have a way of telling TeX what I want. I could have 60 separate files all with variations on the above, but I've found a simpler way is to have TeX examine the jobname to determine this. Then I just have to have 60 symlinks to the main file (and I can create all 60 symlinks with a single `zsh` command). That is, `lecture.beamer.2009-11-19.tex` is a symlink to `lectures.tex` and when I run LaTeX on it then I get tomorrow's lecture in beamer format (well, I would if I'd written it yet). Again, I'd be happy to share the code for this if anyone's interested.
218
https://tex.stackexchange.com/users/86
1426
993
https://tex.stackexchange.com/questions/1423
215
Say I made a beamer presentation and I want to print it out. Is there a nice way to make beamer ignore the pauses so that I don't get lots of pages with duplicate information? Of course there are some things one could do with find & replace, but I would prefer a more sophisticated solution if such exists.
https://tex.stackexchange.com/users/166
Is there a nice way to compile a beamer presentation without the pauses?
false
The class option *handout* will remove pauses and get you one page per actual *frame* environment. For much much more on the subject, see also: <https://mathoverflow.net/questions/5893/beamer-printout>
12
https://tex.stackexchange.com/users/257
1427
994
https://tex.stackexchange.com/questions/1423
215
Say I made a beamer presentation and I want to print it out. Is there a nice way to make beamer ignore the pauses so that I don't get lots of pages with duplicate information? Of course there are some things one could do with find & replace, but I would prefer a more sophisticated solution if such exists.
https://tex.stackexchange.com/users/166
Is there a nice way to compile a beamer presentation without the pauses?
false
Use the `handout` option: ``` \documentclass[handout]{beamer} ```
8
https://tex.stackexchange.com/users/213
1428
995
https://tex.stackexchange.com/questions/1418
66
I'd like to typeset documents using the '[Grid system](http://en.wikipedia.org/wiki/Grid%5F%28page%5Flayout%29)' of page layout. Good examples are on pages 40-53 of [this document](http://www.vignelli.com/canon.pdf). The [textpos](http://www.ctan.org/tex-archive/help/Catalogue/entries/textpos.html) package is helpful for this, but two additional features would be useful: 1. Automatic flow of text across (arbitrarily placed) columns / textpos blocks. 2. Vertical line spacing enforced to be an integer multiple of a base line spacing, even when interrupted (for example) by an equation of arbitrary height. Any ideas as to how either or both of these could be accomplished?
https://tex.stackexchange.com/users/45
Grid System in LaTeX
true
Your requirement 2 is very difficult in latex (and a frequent topic of discussion when people get together to talk about future versions). As well as the [grid](http://www.ctan.org/pkg/grid) package there is the [gridset](http://www.ctan.org/pkg/gridset) package. The [grid](http://www.ctan.org/pkg/grid) package tries to make all vertical spaces a multiple of the baselineskip (or pairs of pre-/post-spacing that sum to a multiple of baselineskip), and removes vertical glue. The [gridset](http://www.ctan.org/pkg/gridset) package tries to "reset" the text back onto the grid after an odd-sized equation or floating figure or table, but it doesn't necessarily do it in the most aesthetic way, and it may take *many* compilation passes before convergence. For your requirement 1, check out the [flowfram](http://www.ctan.org/pkg/flowfram) package. It seems to do what you want.
35
https://tex.stackexchange.com/users/627
1430
996
https://tex.stackexchange.com/questions/1429
82
I would like to be able to generate QR barcodes in my LaTeX documents, and I'm having a hard time finding a solution. The use would be a command such as ``` \qr[1in]{Your text to be QR encoded here} ``` The optional argument would be the width of the square. I'd be using this to put a barcode on each page of an exam for my students, so that the assignments could be scanned and sorted electronically once they hand them in. Anyone know of such a package? I don't mind using an external script (e.g., python) to generate a graphic that I could include.
https://tex.stackexchange.com/users/207
LaTeX Package to generate QR codes?
false
The [`pst-barcode` package](http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-barcode/) will work as follows: ``` \documentclass{standalone} \usepackage{pst-barcode} %\usepackage{auto-pst-pdf} % uncomment this if used with pdflatex \begin{document} \begin{pspicture}(1in,1in) \psbarcode{test string}{}{qrcode} \end{pspicture} \end{document} ``` The empty `{}` between the string to encode, `{test string}`, and the barcode type, `{qrcode}`, can contain options that are detailed in the package documentation (but which, by definition, are not needed). The result wil the look like this: **NB:** This package relies on `pstricks`, which of course uses postscript, so you can't use `pdflatex` to compile unless you uncomment the `auto-pst-pdf` package.
46
https://tex.stackexchange.com/users/32
1431
997
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?
false
LuaTeX supports both. I'm not sure about the state of Lua in LaTeX, but you can already do it in ConTeXt. This is how I did it: ``` \usemodule[simplefonts] \setupsimplefonts[expansion=quality,protrusion=quality] \setmainfont[Fontin Sans] \setsansfont[Fontin Sans] \setmathfont[iwona] \setupalign[hanging,hz] \switchtobodyfont[11pt] ```
0
https://tex.stackexchange.com/users/628
1432
998
https://tex.stackexchange.com/questions/1433
16
Is there a way to configure Vim so that it only checks spelling in the text regions of TeX files?
https://tex.stackexchange.com/users/512
Configuring Vim to only check spelling in text regions
false
Use the project specific dictionary for latex given at <http://www.vim.org/scripts/script.php?script_id=499>. It will remove all the keywords from being marked by vim's spellchecker.
1
https://tex.stackexchange.com/users/342
1435
999
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?
false
For your particular case, I'd write it ``` A \leq B = C \leq D ``` But in general, if you want to stack things, I suppose it could be done with an AMS matrix environment, ``` A \leq \begin{matrix}B \\ \parallel \\ C\end{matrix} \leq D ``` although there's probably something perfectly appropriate for this task. (By the way, I'm not too happy with using `\parallel` to get a rotated equals sign, but if you're not willing to just use a regular unrotated equals sign, I don't know the proper way to do it.)
1
https://tex.stackexchange.com/users/125
1437
1,000
https://tex.stackexchange.com/questions/1433
16
Is there a way to configure Vim so that it only checks spelling in the text regions of TeX files?
https://tex.stackexchange.com/users/512
Configuring Vim to only check spelling in text regions
true
With the [vim-latexsuite](http://vim-latex.sourceforge.net/) spell-checking works fine. Since it makes typing latex files a lot easier and faster I can only recommend it to every LaTeX-writing vim user.
13
https://tex.stackexchange.com/users/83
1438
1,001
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?
false
* `\stackrel` is for placing superscripts, so it's not the right one, * `\substack` is also intended for subscripts or superscripts, so it's not the best choice, * `\genfrac` would be an option: `\[A \leq \genfrac{}{}{0pt}{0}{B}{C} \leq D.\]`, but there might be more space between the letters than you might wish, * the `aligned` environment would be possible, * an `array` environment seems natural: `\[A \leq \begin{array}{c} B \\ C \end{array}\leq D.\]` * if you use array you could modify \arraystretch locally t get it more cramped, another quick way is to use the optional argument of \ like in `\[A \leq \begin{array}{c} B \\[-3pt] C \end{array}\leq D\]` Better use `\[ ...\]` instead of `$$ ... $$`.
3
https://tex.stackexchange.com/users/213
1439
1,002
https://tex.stackexchange.com/questions/329
196
I want to use a smaller font size for the bibliography, e.g., \footnotesize. What is the easiest way to achieve this? I currently do `\renewenvironment{thebibliography}...` and copy the definition from report.cls but with the `\footnotesize` inserted in. However, that seems to be a bit of a hack, so I'm looking for a cleaner way.
https://tex.stackexchange.com/users/79
How to change font size for bibliography?
false
Using the [`biblatex`](http://www.ctan.org/pkg/biblatex) package you could also write ``` \renewcommand*{\bibfont}{\footnotesize} ``` (Personally I'd use `\small` instead of `\footnotesize`.)
154
https://tex.stackexchange.com/users/510
1441
1,003
https://tex.stackexchange.com/questions/329
196
I want to use a smaller font size for the bibliography, e.g., \footnotesize. What is the easiest way to achieve this? I currently do `\renewenvironment{thebibliography}...` and copy the definition from report.cls but with the `\footnotesize` inserted in. However, that seems to be a bit of a hack, so I'm looking for a cleaner way.
https://tex.stackexchange.com/users/79
How to change font size for bibliography?
false
And if you use the [`natbib`](http://www.ctan.org/pkg/natbib) package: ``` \def\bibfont{\footnotesize} ```
70
https://tex.stackexchange.com/users/100
1442
1,004
https://tex.stackexchange.com/questions/133
73
I've got data that I need to include in a table, but there's a lot if it. I've played with the font size and table formatting as much as I can, but the table still won't fit on the page. Is there anyway to make a table that spans multiple pages with LaTeX?
https://tex.stackexchange.com/users/93
How can I make a table that takes up more than a single page?
false
Depending on your overall requirements and the shape of the data in the table, you might also consider dropping your `longtable` into a `landscape` environment, as provided, e.g., by the [`pdflscape`](https://ctan.org/pkg/pdflscape) package.
5
https://tex.stackexchange.com/users/416
1445
1,005
https://tex.stackexchange.com/questions/1444
11
Being a mathematician, I use LaTeX a lot for writing. However, I am interested (mildly) in working with TeX instead, even if only for keeping my own notes. What is the minimum amount of TeX do I need to know to produce reasonable documents with mathematical content? I'm not interested in the finer points of compositing and typefaces and so on, so I may be barking up the wrong tree here. Also (and this is a stretch) what about diagrams in TeX? Usually I use xymatrix in LaTeX, is there an easy way to do simple diagrams in TeX? --- Edit: The answers to the second question are good, but what about the first? Shall I go back a step and ask: > > What is the minimum amount of TeX do I need to know to produce reasonable documents? > > >
https://tex.stackexchange.com/users/141
What is the minimum TeX one can use to put together a mathematical document?
false
You can use plain TeX for mathematics. (My PhD thesis, written two decades ago, was typeset in plain TeX with additional macros.) Of course, you may have to provide a number of additional macros if you want cross-referencing,... As for diagrams, XY-pic (which is what I think you mean by xymatrix) works just fine in plain TeX; although I have not used it in plain TeX in years.
1
https://tex.stackexchange.com/users/18
1446
1,006
https://tex.stackexchange.com/questions/1444
11
Being a mathematician, I use LaTeX a lot for writing. However, I am interested (mildly) in working with TeX instead, even if only for keeping my own notes. What is the minimum amount of TeX do I need to know to produce reasonable documents with mathematical content? I'm not interested in the finer points of compositing and typefaces and so on, so I may be barking up the wrong tree here. Also (and this is a stretch) what about diagrams in TeX? Usually I use xymatrix in LaTeX, is there an easy way to do simple diagrams in TeX? --- Edit: The answers to the second question are good, but what about the first? Shall I go back a step and ask: > > What is the minimum amount of TeX do I need to know to produce reasonable documents? > > >
https://tex.stackexchange.com/users/141
What is the minimum TeX one can use to put together a mathematical document?
false
[AMSTeX](http://www.ams.org/publications/authors/tex/amstex.html) works with plain TeX, adding features for mathematics. It also provides simple macros for (commutative) diagrams: `\CD ... \endCD`.
2
https://tex.stackexchange.com/users/213
1447
1,007
https://tex.stackexchange.com/questions/1444
11
Being a mathematician, I use LaTeX a lot for writing. However, I am interested (mildly) in working with TeX instead, even if only for keeping my own notes. What is the minimum amount of TeX do I need to know to produce reasonable documents with mathematical content? I'm not interested in the finer points of compositing and typefaces and so on, so I may be barking up the wrong tree here. Also (and this is a stretch) what about diagrams in TeX? Usually I use xymatrix in LaTeX, is there an easy way to do simple diagrams in TeX? --- Edit: The answers to the second question are good, but what about the first? Shall I go back a step and ask: > > What is the minimum amount of TeX do I need to know to produce reasonable documents? > > >
https://tex.stackexchange.com/users/141
What is the minimum TeX one can use to put together a mathematical document?
false
For graphics, [TikZ](http://tug.ctan.org/cgi-bin/ctanPackageInformation.py?id=pgf) supports TeX, LaTeX and ConTeXt. The [beautifully illustrated manual](http://tug.ctan.org/tex-archive/graphics/pgf/base/doc/generic/pgf/pgfmanual.pdf) starts off with several tutorials that show how to set TikZ up for use with TeX, LaTeX or ConTeXt. After the environment has been set up, the syntax used to draw pictures is consistent across all three systems. [MetaPost](http://tug.ctan.org/cgi-bin/ctanPackageInformation.py?id=metapost) is another vector drawing language that grew out of MetaFont and inspired much of the syntax used by TikZ. Hans Hagen, the creator of ConTeXt, has done a lot of work on MetaPost and has produced a [very fine manual](http://www.pragma-ade.com/general/manuals/metafun-s.pdf) detailing the system and his MetaFun extensions. The University of Berkeley has [an example](http://math.berkeley.edu/~vojta/tex/samp-p/mpost.html) that shows how to use MetaPost from plain TeX or AMSTeX. LuaTeX has MetaPost support baked in thanks to MPLib. A plain-TeX example for using MetaPost code inside LuaTeX can be found [here](http://github.com/mpg/luamplib/blob/master/luamplib-test-plain.tex).
6
https://tex.stackexchange.com/users/17
1448
1,008
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
Perhaps a little off the track of beautiful *document* typography per se, but I often turn to the [TikZ and PGF examples](http://www.texample.net/tikz/examples/) pages when I'm seeking inspiration or solutions re snazzy and relatively easy to produce vector graphics typography.
21
https://tex.stackexchange.com/users/416
1450
1,009
https://tex.stackexchange.com/questions/1449
31
It's often the case that I'd like to include some graphic in a LaTeX document and overlay it with some text or other annotation, maybe including arrows or other simple graphics. The annotations can be easily handled using TikZ, so obviously if I create the graphic itself in TikZ, I'm all set. But sometimes the graphic is very complex and it's not practical to recreate it with TikZ commands. In these cases, I would like to include the graphic file directly, but still be able to layer my annotations over it. Editing the image to include the annotation is a possibility, but I'd really like to avoid that because the annotations then wouldn't reflect the document's font style and size, and also because it'd be harder to change them. Is there a preferred way to include an external image and then layer additional content over it? A solution that lets me continue to use TikZ for the annotations is preferred, but not required. **EDIT:** All three answers (`overpic`, a TikZ node, and `\pgftext`) work fine, but unfortunately I can only accept one, so I'm going with the one recommended in the "official source," the TikZ manual.
https://tex.stackexchange.com/users/125
How can/should I include annotated images?
false
Using TikZ, you can include the image inside a `\node`: ``` \node[anchor=south west, inner sep=0pt, outer sep=0pt] (image) at (0,0) {\includegraphics{image}}; ``` Then draw away: ``` \draw (image.south west) -- ++(1,1); \coordinate[at = 1in of image.west] (pathStart); \draw (pathStart) -- ++(42,13); % Etc. ``` There is a complete example [at this site](http://kogs-www.informatik.uni-hamburg.de/~meine/tikz/). If you are creating graphics such as plots, you can use the [R](http://www.r-project.org) programming language along with the [tikzDevice](http://cran.r-project.org/web/packages/tikzDevice/index.html) package that an associate and I developed. The tikzDevice encodes graphics created by R into TeX commands. We just released a new version, 0.5.0, that includes support for inserting named coordinates into the generated figures so that they may be further annotated by TikZ commands.
7
https://tex.stackexchange.com/users/17
1451
1,010
https://tex.stackexchange.com/questions/1449
31
It's often the case that I'd like to include some graphic in a LaTeX document and overlay it with some text or other annotation, maybe including arrows or other simple graphics. The annotations can be easily handled using TikZ, so obviously if I create the graphic itself in TikZ, I'm all set. But sometimes the graphic is very complex and it's not practical to recreate it with TikZ commands. In these cases, I would like to include the graphic file directly, but still be able to layer my annotations over it. Editing the image to include the annotation is a possibility, but I'd really like to avoid that because the annotations then wouldn't reflect the document's font style and size, and also because it'd be harder to change them. Is there a preferred way to include an external image and then layer additional content over it? A solution that lets me continue to use TikZ for the annotations is preferred, but not required. **EDIT:** All three answers (`overpic`, a TikZ node, and `\pgftext`) work fine, but unfortunately I can only accept one, so I'm going with the one recommended in the "official source," the TikZ manual.
https://tex.stackexchange.com/users/125
How can/should I include annotated images?
false
The [`overpic` package](http://www.ctan.org/tex-archive/help/Catalogue/entries/overpic.html) sounds to be just what you're after. From the package description: > > The overpic environment is a cross between the LaTeX picture environment and the \includegraphics command of graphicx. The resulting picture environment has the same dimensions as the included eps graphic. LaTeX commands can be placed on the graphic at defined positions. A grid for orientation is available. > > > Note that it is possible to use other graphics formats besides .eps -- anything you'd be able to use with `\includegraphics` will still work with this package.
6
https://tex.stackexchange.com/users/32
1452
1,011
https://tex.stackexchange.com/questions/1453
24
Inspired by [an answer](https://tex.stackexchange.com/questions/1380/how-to-avoid-bibtex-error-message-repeated-entry-for-an-entry-appearing-in-seve/1381#1381) to another question, I am reminded of the various reasons why it's difficult to have only one BIB file. I would like to have a set of command line tools that I could script to take my 'master' BIB and convert it for a specific situation. I am aware of [bibtool](http://www.ctan.org/tex-archive/biblio/bibtex/utils/bibtool/) which is probably powerful enough that it can meet most of my needs, but I haven't figured out how to use it... Here are some common tasks that could be automated this way. Of course, the strategic goal would be solved 'the right way' by using a smarter BST (or something like biblatex) but often one is constrained (or at least it is *much* more convenient) to use a publisher's broken BST and make a few tweaks to the database: 1. Truncate all papers with more than 5 authors, and keep only the first 3 authors of any truncated papers (because you are running low on space) 2. Remove a field (month, url, ISSN, ISBN) because a journal has a broken BST that makes a mess of these 3. Remove a field conditionally (eg, remove title only for articles but not books) 4. Expand/collapse @string references (eg, I have 2 files, one `apsjour.bib` with `@STRING{prl = {Phys. Rev. Lett.}}` and one `fulljour.bib` with `@STRING{prl = {Physical Review Letters}}` so I can write `\bibliography{apsjour,articlebib}` or `\bibliography{fulljour,articlebib}` as required, but I certainly don't expect my co-authors to deal with this convention. 5. Remove `archiveprefix`, `eprint`, `primaryclass` from `@article`s with a page number 6. Remove `DOI`s with weird characters in them because the documentclass doesn't do enough escaping (seriously, Wiley, is `10.1002/(SICI)1521-3978(200005)48:5/7<531::AID-PROP531>3.0.CO;2-#` **really** a good idea for something that needs to end up in a URL?) 7. A tool that is flexible enough to do more sophisticated things would be nice, so long as the flexibility isn't at the price of usability (cf [bibtool](http://www.ctan.org/tex-archive/biblio/bibtex/utils/bibtool/)) 8. There are probably other use cases that I've temporarily forgotten. I feel like I'm forever making journal-specific or even paper-specific modifications of bibtex databases. [JabRef](http://jabref.sourceforge.net/) makes it fairly easy, but still... There are lots of cute tools living on CTAN in [tex-archive/biblio/bibtex/utils](http://tug.ctan.org/tex-archive/biblio/bibtex/utils/) but I feel that there *must* be some other place where the *serious* tools hide. I can't be the only one with these problems, can I? (Feel free to tell me that I'm approaching this the wrong way and let me know your personal strategy for dealing with the above issues without using commandline tools! This includes, as Jukka Suomela suggests in his answer, tools for editing the generated BBL file instead of editing the BIB.) Here are some problems that I already know of solutions for: 1. Process an AUX file to keep only the cited entries (many solutions, including [bibextract](http://tug.ctan.org/tex-archive/biblio/bibtex/utils/bibextract/)) 2. Merge BIB files and remove duplicates ([pybib](http://www.ctan.org/tex-archive/biblio/bibtex/utils/pybib/)) 3. Force a particular format of page ranges (1234-56 or 1234-1256) ([bibfile-reformat-pages](http://tug.ctan.org/tex-archive/biblio/bibtex/utils/bibfile-reformat-pages/))
https://tex.stackexchange.com/users/627
Command-line tools for some bibtex database manipulations
false
I do not know any non-programmer tools that can do those things you ask for, so I think you will need a bib scripting toolkit, and pybib is the most commonly used of those. If you are not familiar with python but do know perl, then [btOOL](http://www.gerg.ca/software/btOOL/) may be more suited to you.
6
https://tex.stackexchange.com/users/89
1456
1,012
https://tex.stackexchange.com/questions/1455
86
How do I specify the fonts, and general font size, for the titles, chapters and sections in my document **Update:** I can see how my question is confusing. I use `\section` and `\chapter` etc. to organise my document, and I would like to change the way the section and chapter titles are displayed.
https://tex.stackexchange.com/users/167
How to set the font for a \section title (and chapter etc)
false
Depending on the level of customization you want, pick one of the following, in decreasing order of power/difficulty: * read the Latex Companion and get your hands dirty programming * [titlesec](http://www.ctan.org/pkg/titlesec) package * [sectsty](http://www.ctan.org/tex-archive/macros/latex/contrib/sectsty/) package * [fncychap](http://www.ctan.org/pkg/fncychap) package * [memoir](http://www.ctan.org/pkg/memoir) document class.
24
https://tex.stackexchange.com/users/627
1457
1,013
https://tex.stackexchange.com/questions/1420
28
I think I've seen a script for converting mediawiki syntax to Latex. Also, in case there are more than one solution for this, it might be nice to summarize them here.
https://tex.stackexchange.com/users/690
How to convert mediawiki syntax to latex?
false
If you're working from within a MediaWiki, there is the [wiki2latex](http://code.google.com/p/wiki2latex/) extension.
10
https://tex.stackexchange.com/users/89
1458
1,014
https://tex.stackexchange.com/questions/1444
11
Being a mathematician, I use LaTeX a lot for writing. However, I am interested (mildly) in working with TeX instead, even if only for keeping my own notes. What is the minimum amount of TeX do I need to know to produce reasonable documents with mathematical content? I'm not interested in the finer points of compositing and typefaces and so on, so I may be barking up the wrong tree here. Also (and this is a stretch) what about diagrams in TeX? Usually I use xymatrix in LaTeX, is there an easy way to do simple diagrams in TeX? --- Edit: The answers to the second question are good, but what about the first? Shall I go back a step and ask: > > What is the minimum amount of TeX do I need to know to produce reasonable documents? > > >
https://tex.stackexchange.com/users/141
What is the minimum TeX one can use to put together a mathematical document?
false
On the first question you should be more elaborate. At the most minimum level, the only TeX command you need to know is `\end`. You should explain what you want to do, *reasonable documents* on its own is just too vague to give better answers. On the subject of learning tex, see the excellent (and nowadays free) book [TeX by Topic](http://eijkhout.net/texbytopic/texbytopic.html) by Victor Eijkhout. For a short introduction to (plain) TeX, try [A Gentle Introduction to TeX](http://www.ctan.org/tex-archive/info/gentle/) by Michael Doob. It is quite old and the part about running TeX and editing is somewhat obsolete, but it covers enough of the plain functionality to get started, and it very easy to follow.
5
https://tex.stackexchange.com/users/89
1459
1,015
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
Martin's answer is specifically about spacing following so called 'large operators'. Those are operators like `\int` and `\sum`, but also the goniometric functions `\sin`, `\cos`, et cetera. The special thing about those is that these operators are followed by a delimited argument. In all other cases, `\left` and `\right` work just fine.
6
https://tex.stackexchange.com/users/89
1461
1,016
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
Modern distributions are extremely large (often several gigabytes), and while most of the space is taken by fonts, these distributions also include a wealth of packages. In fact, most packages that are distributed via the [CTAN directory](http://www.ctan.org/) are included in *all* modern distributions – at the moment, that’s 2300 packages in `contrib` alone (i.e. packages that are not part of the LaTeX *core*). Notice that not all of them are installed by default, depending on your distribution. For example, MikTeX prefers to install packages on demand, i.e. as soon as they get used. TeX Live, on the other hand, installs most of them (all of them?) by default. There’s also a slight lag between the time that packages are released on CTAN and the time they are included into the various distributions, so not all packages on CTAN are part of all distributions yet.
4
https://tex.stackexchange.com/users/42
1464
1,017
https://tex.stackexchange.com/questions/1463
3
I have tried to set the options in the preamble: `\SweaveOpts{keep.source=TRUE, eps=FALSE, pdf=FALSE, png=TRUE}` but this does not reliably produce only `.png` (or indeed any!) figures. I say 'reliably' as I have been successful previously in getting the `.png` figures, but having made some modifications to my document (alas, unscientifically) Sweave no longer produces any figures.
https://tex.stackexchange.com/users/702
Using Sweave, how can I reliably get .PNG figures instead of .EPS or .PDF figures?
false
There is no option for automatic PNG output in the official Sweave distribution. The only options are PDF or EPS-- you are not seeing output because you have turned both of those off. You can use whatever output device you want by forgoing the use of `fig=TRUE` and writing code that looks like: ``` \begin{figure} \caption{Some silly plot.} \label{fig:sillyPlot} <<fig1>>= png( 'fig1.png' ) # Plotting stuff. dev.off() # <- very very important @ \includegraphics{fig1} \end{figure} ``` Instead of: ``` \begin{figure} \caption{Some silly plot.} \label{fig:sillyPlot} <<fig1,fig=TRUE>>= # Plotting stuff. @ \end{figure} ``` The `fig=TRUE` option really just saves some typing by freeing you from opening the device, closing it and then inserting the `\includegraphics{}` command for LaTeX. If you really want `fig=TRUE` to support PNG output you will have to roll your own modified Sweave driver or use [this one](http://sites.google.com/site/thibautjombart/r-packages) created by Thibaut Jombart.
5
https://tex.stackexchange.com/users/17
1465
1,018
https://tex.stackexchange.com/questions/1449
31
It's often the case that I'd like to include some graphic in a LaTeX document and overlay it with some text or other annotation, maybe including arrows or other simple graphics. The annotations can be easily handled using TikZ, so obviously if I create the graphic itself in TikZ, I'm all set. But sometimes the graphic is very complex and it's not practical to recreate it with TikZ commands. In these cases, I would like to include the graphic file directly, but still be able to layer my annotations over it. Editing the image to include the annotation is a possibility, but I'd really like to avoid that because the annotations then wouldn't reflect the document's font style and size, and also because it'd be harder to change them. Is there a preferred way to include an external image and then layer additional content over it? A solution that lets me continue to use TikZ for the annotations is preferred, but not required. **EDIT:** All three answers (`overpic`, a TikZ node, and `\pgftext`) work fine, but unfortunately I can only accept one, so I'm going with the one recommended in the "official source," the TikZ manual.
https://tex.stackexchange.com/users/125
How can/should I include annotated images?
true
The pgf/TikZ manual suggests using the command `\pgftext` to insert external graphics (section 53.3.3 "Inserting Text and Images"). Here's an example taken from [this seminar](http://www.math.ntnu.no/~stacey/Seminars/chern.html) (slides 5 and 6 in the presentation version): ``` \begin{figure} \begin{tikzpicture} \pgftext{% \includegraphics[width=\textwidth]{Bridge05a}% }% \node[fill=black, opacity=.5, text opacity=1] at (0,.5) {\Large \color{yellow} Geometry}; \node[fill=black, opacity=.5, text opacity=1] at (0,-.5) {\Large \color{red} \emph{Manifolds}}; \node[fill=black, opacity=.5, text opacity=1] at (-4,.5) {\Large \color{yellow} Algebra}; \node[fill=black, opacity=.5, text opacity=1] at (4,.5) {\Large \color{yellow} Analysis}; \end{tikzpicture} \end{figure} ``` There is also a *hint* elsewhere in the manual (in 53.3.1) that the command `\pgfimage` can be used instead of `\includegraphics` (although still within the `\pgftext` command); however, searching for `\pgfimage` in the manual doesn't turn up any further explanation of this command. --- The `\pgftext` command is something of a special command. It "escapes" out of the current picture back to "normal TeX". It is, therefore, somewhat like a `\node` command. It works by constructing a box which is then put into the picture. By default this box is put at the current origin. A simple way to move it, therefore, is to (temporarily) tell TikZ/PGF to move the origin priori to issuing the `\pgftext` command. An alternative way of positioning it is to use the initial optional argument. Thus one can say `\pgftext[<positioning information>]{text}` where `<positioning information>` is some set of PGF keys that relocate the box. These are similar to the positioning of a `\node`, but have a slightly "low level" feel to them. For example, to locate the box at a particular point one would say `\pgftext[at={\pgfpoint{1cm}{2cm}}]{text}`. Note the `\pgfpoint` syntax rather than the TikZ coordinate syntax. In the 2.10-CVS version of the manual, the `\pgftext` command is documented in Section 77.3.3. There is also some important information about how it interacts with scopes in Section 77.1.2 (note especially item 5 about the ability to put another `pgfpicture` inside a `\pgftext` command, something that should never be done with `\node`!). In summary, `\pgftext` is somewhat akin to `\node` in that it allows you to put "normal TeX" in your picture. However, the two are different in that a `\node` is considered part of the picture but `\pgftext` is for things that are meant to be somewhat separate.
19
https://tex.stackexchange.com/users/86
1466
1,019
https://tex.stackexchange.com/questions/45
105
The slowest part is a dozen of diagrams in `TikZ.`
https://tex.stackexchange.com/users/69
How to speed up LaTeX compilation with several TikZ pictures?
false
Another way to speed-up compilation is to figure out what it is that is making each picture slow and then do something about it. As a case study, it just took nearly 18s to compile the source for [this seminar](http://www.math.ntnu.no/~stacey/Seminars/chern.html). That's a bit long for a compulsive recompiler like me! Watching the page numbers go by, I could see that the picture that takes the longest is on page 51. The source of this diagram [is available](http://www.math.ntnu.no/~stacey/documents/smooth_chern.3.tex) and it's fairly clear that it's the torus that takes the time (there are two foreach loops, nested). If you look carefully at the start of the foreach loops, you'll see: ``` \foreach \t in {\start,\tsnd,...,\tend} { \foreach \s in {0,\sstep,...,\send} { ``` Even without looking at how the various commands are defined, it's clear that by changing them, I can change how many times these loops loop. Thus when I'm working on the diagram itself then I can use values that I'll use in the final document, but when I'm working elsewhere in the document, I can set them to something a little more user-friendly. Indeed, near the top of the document, I have: ``` % Only do every \step th step in draft mode when drawing pictures \ifdraft \def\step{10} \else \def\step{1} \fi ``` which sets a *global* option (of course, I can override it for a particular picture when I'm actually working on it). (Note: `\ifdraft` isn't a standard "if", hopefully it's obvious what it does.) One more tip: when working on a document with lots of diagrams, I often have a "diagram-only" file for working on a specific diagram at a time. This has the same preamble as my main document but only one diagram in it (the one I'm currently working on). It's like a scrap piece of paper. To save my working, when starting to a new picture then I just put a `\end{document}` in above the previous picture.
15
https://tex.stackexchange.com/users/86
1467
1,020
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?
false
Having looked at the output of the various possibilities, I can't help feeling that this question should carry the "don't do that" tag! I find myself wondering exactly what the circumstances are that lead you to want to do this. My guess is that the overall expression is quite long with lots of terms and so putting them line-by-line makes it just *too* big. So the aim is to make the full expression compact. Given that it (presumably) doesn't *quite* fit on one line, using the equalities as compression points does make a certain amount of sense. But how about using just a little more space to make it just a little clearer? So with that in mind, here's my offering (using the amsmath package): ``` \begin{align*} A \le B \le C &\le D \\ &\phantom{{}\le{}}\parallel \\ &\phantom{{}\le{}}E \le F \le G \le H \end{align*} ``` Note the `\phantom`s. Putting the alignment tag *after* the `\le` on the first line leads to bad spacing between the `\le` and the `D`, so we have to shift the vertical equals sign and the `E` along a bit so that they correctly lie under the `D`. Without the extra braces, the space either side of the `\le` gets trimmed in the `\phantom` making it too short.
2
https://tex.stackexchange.com/users/86
1468
1,021
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
Here's another shameless plug for one's own thesis: [*Narrowband CARS spectroscopy in the molecular fingerprint region*](http://purl.org/utwente/e58346) Here's some of the typographically relevant code I used, plus the code for the abstract page: <http://pastebin.com/JWFjbZ1q>
19
https://tex.stackexchange.com/users/677
1470
1,022
https://tex.stackexchange.com/questions/1460
61
Is there a script to automate externalizing TikZ graphics? (As suggested by Scott [here](https://tex.stackexchange.com/questions/45/how-can-i-speed-up-latex-compilation))
https://tex.stackexchange.com/users/512
Script to automate externalizing TikZ graphics
false
I’ve just come up with the following. It seems to work quite well (on Unix/Linux and Mac): ``` SOURCE=$1 for name in $( \ grep '^[:space:]*\\beginpgfgraphicnamed' $SOURCE | \ sed s'/[:space:]*\\beginpgfgraphicnamed{\(.*\)}/\1/' \ ); do pdflatex --jobname=$name $SOURCE done ``` **An explanation:** It uses `grep` to filter out all lines that contain `\beginpgfgraphicsnamed`, *but only* if there’s only whitespace before the command in the line. This prevents that commented-out commands are also found. Next, it invokes `sed` to filter from those lines only the relevant part, i.e. the command argument that’s to be used as the `pdflatex` jobname. It then uses `for` to iterate over all these jobnames and calls `pdflatex` in turn for each of them.
3
https://tex.stackexchange.com/users/42
1471
1,023
https://tex.stackexchange.com/questions/226
100
One of the annoying aspects of LaTeX is the limited number of fonts that come by default, and the pain involved in making new fonts 'LaTeX' ready. I have a collection of truetype fonts that I'd like to prepare for use, and I definitely want to make sure I have vector versions of these fonts (i.e not type 3/bitmapped versions). Is there a relatively painless way to do this ?
https://tex.stackexchange.com/users/103
Installing TTF fonts in LaTeX
false
The process for PdfTeX is something like this (depends a little bit on your distribution): 1. Get autoinst.pl from Fontools from CPAN 2. Get otf2tfm from lcdf-typetools 3. Run autoinst.pl (using Perl) on all ttfs 4. Add generated PdfTeX font mapping (in MikTeX for instance [`initexmf --edit-config-file updmap`, add `Map yourmap.map` and run `initexmf --mkmaps`](http://docs.miktex.org/manual/advanced.html)) You can do the whole process manually as well (autoinst.pl is nothing but a smart wrapper): 1. Create tfm metrics and a ttfonts.map using `ttf2tfm` 2. Create virtual font tables using `vptovf` 3. Create afm metrics using `ttf2afm` 4. Create pdf font map using `afm2tfm` 5. Put \*.tfm, \*.afm, \*.ttf, \*.vf into the `fonts/tfm/` etc. 6. Add the font maps 7. Create a package/sty to pull the various fonts into a font family (this is where I am stuck) My ruby script for running the commands looks like this: ``` require 'fileutils' basename = "Nexus" open("#{basename}.map", 'a') { |pdfFontMap| Dir["#{basename}*.ttf"].each{ |file| file.sub!(/\.ttf$/, "") ttf = "#{file}.ttf" file.gsub!(/_/,"") # Remove underscores puts `ttf2tfm #{ttf} -q -T T1-WGL4.enc -v ec#{file}.vpl rec#{file}.tfm >> ttfonts.map` puts `vptovf ec#{file}.vpl ec#{file}.vf rec#{file}.tfm` puts `ttf2afm -e T1-WGL4.enc -o rec#{file}.afm #{ttf}` pdfFontMap.puts `afm2tfm rec#{file}.afm -T T1-WGL4.enc rec#{file}.tfm`.gsub(/\r|\n/, "") + " <#{ttf}" } } ``` You can find more details about the manual way in: <http://www.radamir.com/tex/ttf-tex.htm> P.S.: * Run `initexmf --update-fndb` EVERY time new files are put somewhere
25
https://tex.stackexchange.com/users/595
1472
1,024
https://tex.stackexchange.com/questions/1453
24
Inspired by [an answer](https://tex.stackexchange.com/questions/1380/how-to-avoid-bibtex-error-message-repeated-entry-for-an-entry-appearing-in-seve/1381#1381) to another question, I am reminded of the various reasons why it's difficult to have only one BIB file. I would like to have a set of command line tools that I could script to take my 'master' BIB and convert it for a specific situation. I am aware of [bibtool](http://www.ctan.org/tex-archive/biblio/bibtex/utils/bibtool/) which is probably powerful enough that it can meet most of my needs, but I haven't figured out how to use it... Here are some common tasks that could be automated this way. Of course, the strategic goal would be solved 'the right way' by using a smarter BST (or something like biblatex) but often one is constrained (or at least it is *much* more convenient) to use a publisher's broken BST and make a few tweaks to the database: 1. Truncate all papers with more than 5 authors, and keep only the first 3 authors of any truncated papers (because you are running low on space) 2. Remove a field (month, url, ISSN, ISBN) because a journal has a broken BST that makes a mess of these 3. Remove a field conditionally (eg, remove title only for articles but not books) 4. Expand/collapse @string references (eg, I have 2 files, one `apsjour.bib` with `@STRING{prl = {Phys. Rev. Lett.}}` and one `fulljour.bib` with `@STRING{prl = {Physical Review Letters}}` so I can write `\bibliography{apsjour,articlebib}` or `\bibliography{fulljour,articlebib}` as required, but I certainly don't expect my co-authors to deal with this convention. 5. Remove `archiveprefix`, `eprint`, `primaryclass` from `@article`s with a page number 6. Remove `DOI`s with weird characters in them because the documentclass doesn't do enough escaping (seriously, Wiley, is `10.1002/(SICI)1521-3978(200005)48:5/7<531::AID-PROP531>3.0.CO;2-#` **really** a good idea for something that needs to end up in a URL?) 7. A tool that is flexible enough to do more sophisticated things would be nice, so long as the flexibility isn't at the price of usability (cf [bibtool](http://www.ctan.org/tex-archive/biblio/bibtex/utils/bibtool/)) 8. There are probably other use cases that I've temporarily forgotten. I feel like I'm forever making journal-specific or even paper-specific modifications of bibtex databases. [JabRef](http://jabref.sourceforge.net/) makes it fairly easy, but still... There are lots of cute tools living on CTAN in [tex-archive/biblio/bibtex/utils](http://tug.ctan.org/tex-archive/biblio/bibtex/utils/) but I feel that there *must* be some other place where the *serious* tools hide. I can't be the only one with these problems, can I? (Feel free to tell me that I'm approaching this the wrong way and let me know your personal strategy for dealing with the above issues without using commandline tools! This includes, as Jukka Suomela suggests in his answer, tools for editing the generated BBL file instead of editing the BIB.) Here are some problems that I already know of solutions for: 1. Process an AUX file to keep only the cited entries (many solutions, including [bibextract](http://tug.ctan.org/tex-archive/biblio/bibtex/utils/bibextract/)) 2. Merge BIB files and remove duplicates ([pybib](http://www.ctan.org/tex-archive/biblio/bibtex/utils/pybib/)) 3. Force a particular format of page ranges (1234-56 or 1234-1256) ([bibfile-reformat-pages](http://tug.ctan.org/tex-archive/biblio/bibtex/utils/bibfile-reformat-pages/))
https://tex.stackexchange.com/users/627
Command-line tools for some bibtex database manipulations
false
I have never had a situation in which I *must* provide a Bibtex file that compiles flawlessly with a journal-supplied BST file. Do you really need to do that? For conference and journal submissions, one typically just sends a PDF file, not the source code. For the final version, in my experience it's usually enough to provide a Latex source code in which I have already replaced the \bibliography command by the contents of the Bibtex-generated \*.bbl file. Nobody will see *how* I created the \*.bbl file, so I can do anything I want: * Take the journal-supplied BST file and hack it a bit. It may be much faster to simply remove some buggy parts from the BST file than to tweak your Bibtex database. This makes a lot of sense if you need to deal with the same buggy BST file frequently. * Just take the final \*.bbl file and edit it directly. Particularly useful to handle some one-off special cases. Another trick that I have used to handle some very exceptional cases is to have two entries in my Bibtex database for the same paper (obviously with different keys, like "foo" and "foo2"). This is useful if you'd like to decide case-by-case which version to use in which paper, independently of other issues such as different BST files.
8
https://tex.stackexchange.com/users/100
1473
1,025
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
While writing it, I really liked my bachelor thesis [*Implementation of a Read Mapping Tool Based on the Pigeon-hole Principle*](http://madrat.net/my/bachelor/thesis), even though the margins (and some other things) were all wrong. Looking back, I probably wouldn’t use such a heavy font again (Hoefler Text). But I still like the chapter headings a lot:
30
https://tex.stackexchange.com/users/42
1474
1,026
https://tex.stackexchange.com/questions/1460
61
Is there a script to automate externalizing TikZ graphics? (As suggested by Scott [here](https://tex.stackexchange.com/questions/45/how-can-i-speed-up-latex-compilation))
https://tex.stackexchange.com/users/512
Script to automate externalizing TikZ graphics
true
The TikZ 2.10 library, `external`, addresses this issue. Externalizing all TikZ graphics in a LaTeX document is as easy as: ``` \usetikzlibrary{external} \tikzexternalize ``` If your document is named `report.tex`, this will dump out a series of images: `report-figure0.pdf`, `report-figure1.pdf`, etc, etc. To get a more manageable output, you can specify a directory for in which the files are to be placed and names that are more descriptive than `report-figure0.pdf`: ``` \usetikzlibrary{external} \tikzexternalize[prefix=figures/] % Rest of preamble % Begin document, write stuff % Set a filename for the next tikzpicture. \tikzsetnextfilename{importantFigure} \begin{tikzpicture} % This will be output to figures/importantFigure.pdf % Picture code \end{tikzpicture} ``` To compile the document, you will need to ensure the `figures` directory exists and run `pdflatex` with shell execution enabled: ``` mkdir figures pdflatex -shell-escape <tex file> ``` A whole pile of options is available to customize the way the figures are output. See section 52.4 (this numbering is subject to change!) of the [development version documentation](https://mirrors.rit.edu/CTAN/graphics/pgf/base/doc/pgfmanual.pdf) for complete info and options. The manual also covers how to obtain EPS output- but this option looks less polished than PDF output.
74
https://tex.stackexchange.com/users/17
1475
1,027
https://tex.stackexchange.com/questions/1443
141
I type fast enough that for most things it's not a pain, but I have a few big stacks of old course notes I'd like in LaTeX which I'm dreading having to go through. So, I'm just wondering what the best solution for handwriting -> LaTeX is so far, if any.
https://tex.stackexchange.com/users/27533
What is the status of generating LaTeX from handwriting (i.e., OCR)?
true
> > So, I'm just wondering what the best solution for handwriting -> LaTeX is so far, if any. > > > There is none, and if there’ll ever be one it’s probably years, if not decades off. I know people who are currently working on recognizing just the *layout* of a document, i.e. recognizing that a paper represents a letter, etc. That works fairly well, but it’s still research level, and going from recognizing the layout to replicating the layout using LaTeX is a big, non-obvious step. And we’re not even talking about text recognition itself. Just text recognition (i.e. ignoring any layout issue) works fairly well today but only for plain text, not with any formatting. **That said**, there’s [**JMathNotes**](http://userpage.fu-berlin.de/~tapia/?page_id=269) which recognizes basic formulas and produces LaTeX output. It’s a nice and quite powerful proof of concept. But it’s important to realize that even though many of the individual building blocks exist, piecing together a working solution is hard.
72
https://tex.stackexchange.com/users/42
1476
1,028
https://tex.stackexchange.com/questions/1455
86
How do I specify the fonts, and general font size, for the titles, chapters and sections in my document **Update:** I can see how my question is confusing. I use `\section` and `\chapter` etc. to organise my document, and I would like to change the way the section and chapter titles are displayed.
https://tex.stackexchange.com/users/167
How to set the font for a \section title (and chapter etc)
true
For the standard classes titlesec would be my choice. Here's an example using titlesec and the standard formatting/spacing, except that the font is changed to Helvetica (Arial has been derived from it) and the font color for demonstration. Adjust the \titleformat arguments to achieve what you desire. ``` \documentclass{report} \usepackage[english]{babel} \usepackage{blindtext} \usepackage{mathptmx}% Times Roman font \usepackage[scaled=.90]{helvet}% Helvetica, served as a model for arial \usepackage{xcolor} \usepackage{titlesec} \titleformat{\chapter}[display] {\normalfont\sffamily\huge\bfseries\color{blue}} {\chaptertitlename\ \thechapter}{20pt}{\Huge} \titleformat{\section} {\normalfont\sffamily\Large\bfseries\color{cyan}} {\thesection}{1em}{} \begin{document} \Blinddocument \end{document} ``` With KOMA-Script classes it's easy as many other issues, just use `\setkomafont` and `\addtokomafont`. Here's the example: ``` \documentclass{scrreprt} \usepackage[english]{babel} \usepackage{blindtext} \usepackage{mathptmx}% Times Roman font \usepackage[scaled=.90]{helvet}% Helvetica, served as a model for arial \usepackage{xcolor} \usepackage{titlesec} \setkomafont{chapter}{\normalfont\huge\sffamily\bfseries\color{blue}} \addtokomafont{section}{\color{cyan}} \begin{document} \Blinddocument \end{document} ```
79
https://tex.stackexchange.com/users/213
1477
1,029
https://tex.stackexchange.com/questions/226
100
One of the annoying aspects of LaTeX is the limited number of fonts that come by default, and the pain involved in making new fonts 'LaTeX' ready. I have a collection of truetype fonts that I'd like to prepare for use, and I definitely want to make sure I have vector versions of these fonts (i.e not type 3/bitmapped versions). Is there a relatively painless way to do this ?
https://tex.stackexchange.com/users/103
Installing TTF fonts in LaTeX
false
The easiest way is with XeTeX or LuaTeX and the [`fontspec`](https://ctan.org/pkg/fontspec) package. They can use any TTF font installed on the system. For Linux this means both the system wide fonts and any fonts you put into `~/.fonts/` (e.g. by installing them via Nautilus). To use the fonts you simply have to load the `fontspec` package and set the font: ``` \documentclass{article} \usepackage{fontspec} \setmainfont{Arial} \begin{document} Lorem ipsum... \end{document} ``` Then compile the the document with `xelatex` or `lualatex`. The [`fontspec` documentation](https://texdoc.org/serve/fontspec.pdf/0) describes all the possibilities for changing fonts. The only drawbacks (as far as I am aware) are that you can only generate .pdf files and that you need a sufficiently new TeX distribution (TeX Live 2009 should work for XeTeX and Tex Live 2010 for LuaTeX).
51
https://tex.stackexchange.com/users/83
1478
1,030
https://tex.stackexchange.com/questions/1418
66
I'd like to typeset documents using the '[Grid system](http://en.wikipedia.org/wiki/Grid%5F%28page%5Flayout%29)' of page layout. Good examples are on pages 40-53 of [this document](http://www.vignelli.com/canon.pdf). The [textpos](http://www.ctan.org/tex-archive/help/Catalogue/entries/textpos.html) package is helpful for this, but two additional features would be useful: 1. Automatic flow of text across (arbitrarily placed) columns / textpos blocks. 2. Vertical line spacing enforced to be an integer multiple of a base line spacing, even when interrupted (for example) by an equation of arbitrary height. Any ideas as to how either or both of these could be accomplished?
https://tex.stackexchange.com/users/45
Grid System in LaTeX
false
If you would consider using ConTeXt: First, I don't know if I fully understand your question, but re.1 if you mean a DTP like flow of text across chained boxes it's not possible in ConTeXt. However you can take a look at the possibilities offered by [columnsets](http://pragma-ade.com/general/manuals/columns.pdf) and see if they fit your needs. Obviously you can also try using [layers](http://wiki.contextgarden.net/layers) to obtain really complicated layouts. re.2 ``` \setuplayout[grid=yes] ``` and see options for ``` \setupinterlinspacing ``` in [ConTeXt manual](http://pragma-ade.com/general/manuals/cont-eni.pdf), for more of grid trickery see [Details](http://pragma-ade.com/general/manuals/details.pdf)
23
https://tex.stackexchange.com/users/359
1479
1,031
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?
true
* TeXworks is a multi-platform editor and user friendly. It can use the same input encoding on Windows and on Linux and Mac OS X. * Texmaker is multi-platform and a complex editor * TeX Live is a multi-platform distribution. It worked fine for me on Linux and on Windows. * LyX is cross-platform as well.
8
https://tex.stackexchange.com/users/213
1484
1,033
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
In my opinion, TexWorks + TeXLive is the user-friendliest cross-platform solution to TeX/LaTeX editing and previewing. I think LyX's attempt at WYSIWYG creates more confusion than it solves. Incidentally, there is a Mac OSX version of TeX Live, and is called [MacTeX](http://www.tug.org/mactex/). It comes with a bunch of extra features, but at its core it is the TeX Live distribution repackaged for easier installation and use on Mac OSX.
7
https://tex.stackexchange.com/users/89
1485
1,034
https://tex.stackexchange.com/questions/1482
8
I'm using a class `classX` that accepts class option `optionX`. Thus, I can write: ``` \documentclass[optionX]{classX} ... ``` Now, as I understand it, being a class option, after `classX` processes this option, `optionX` is globally defined. All well and good, except that subsequently, for `packageY` that also accepts `optionX` (same option name, however semantically unrelated), the two lines 1. `\usepackage{packageY}` 2. `\usepackage[optionX]{packageY}` both (erroneously) produce the same effect. All would be well if I could undefine `optionX` before executing `\usepackage{packageY}.` (At this point I should also note that, lest anyone be worried about how this might affect `classX`'s subsequent performance, there's no need for the slightest concern -- `classX` has no need of this option remaining defined after executing its class `\ProcessOptions`). So, to the heart of my question, would anyone with better TeX\LaTeX knowledge than I, have any idea how to go? FYI, I've tried several of the usual suspects: `\let\optionX\@undefined` along with several clueless stabs at `\let\<prefix>@optionX\@undefined` after scouring source2e.pdf. (JW: sadly I don't think I can hold back for LaTeX3's promised encapsulated namespaces solution. *sigh.*)
https://tex.stackexchange.com/users/416
How can one undefine an already processed class option?
true
The relevant macro seems to be `\@classoptionslist`. It's a comma separated list of options passed to the class. So redefining it by stripping out the unwanted options will remove them from the view of later packages. Test document: ``` \documentclass[a4paper,draft,wibble]{article} \makeatletter \def\@classoptionslist{a4paper,draft} \makeatother \usepackage{options} \begin{document} \end{document} ``` Test package: ``` \ProvidesPackage{options} \DeclareOption{draft}{\message{^^JGot draft^^J}} \DeclareOption{wibble}{\message{^^JGot wibble^^J}} \ProcessOptions ``` With reference to a comment I left to the actual question, I would make any redefinitions of `@classoptionslist` a *local* thing (save the real value before modifying it and restore it once the package is loaded) to avoid problems with other packages that might want to know the full list passed to the class. For how to actually do the modification, see [this question](https://tex.stackexchange.com/questions/363/what-is-the-best-way-to-scan-over-a-list-of-somethings) about iterating over a list.
6
https://tex.stackexchange.com/users/86
1486
1,035
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
Vim, Emacs, Texworks, Texmaker, Kile and LyX are all cross-platform (though setting up Kile is tricky on some). Unicode is the future. Save your files with Unicode encoding and refuse to use text editors that can't or don't. That should eliminate half your problems. Incompatibilities between different versions of TeX systems do happen, but I think they tend to be temporary, and when identified, fixed ASAP. That's been my experience anyway. Just be sure to keep your system up to date. FWIW, I’ve personally not have problems compiling source with DOS newlines using TeXlive on linux.
7
https://tex.stackexchange.com/users/411
1487
1,036
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
true
When I switched to using a VCS then I had a load of documents that I was writing that were not in suitable format for putting in to a VCS. In particular, the one-sentence-per-line rule was not in force. So I wrote one. I now use it for similar circumstances as you describe: when collaborators send me something and I want to import it in to my VCS. It's available from github: [direct link](https://github.com/loopspace/fmtlatex) and the [relevant page](http://loopspace.mathforge.org/HowDidIDoThat/TeX/VCS/) about my experiences switching to a VCS. It's a perl script and the documentation is embedded: `perldoc fmtlatex` should provide it. When using this program, I LaTeX the document first and then `dvips` to produce a postscript file. Then I run `fmtlatex` on it, and run `latex+dvips` again (being sure not to overwrite the original one). Doing `diff original.ps new.ps` will tell me if there's any functional difference between the two documents - it should just produce something about timestamps. If you have a document that *does* produce a significant difference, please send it to me (if possible) as that's evidence of a bug. (All this is in the documentation.) I also have a script for swapping dollars for their LaTeX equivalents which is available [also on github](https://github.com/loopspace/debuck).
36
https://tex.stackexchange.com/users/86
1488
1,037
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
There's no doubt that the Tex family of software is disordered, tricky, and hard to master. If mastering Tex is the key, and that means mastering it in the same way as you want to master Haskell, then something minimalist will suffice: program in Plain Tex on Xetex. Then work through the following detailed tutorial: * Knuth, 1984, The TeXbook which has lots of exercises, and is supported by an excellent reference work, [TeX by Topic](http://eijkhout.net/texbytopic/texbytopic.html). This is not the easiest way to use the Tex system for document processing, but it seems to address your learnability complaints. I believe that Texlive offers the multiplatform standard you are looking for, but it is not the easiest install, and, as I noted elsewhere, there are sometimes compatibility issues from one year to the next. As for size, well, Word for Mac 2004 plus VBA scripting is over 300 Mb, and has a much smaller font collection than Texlive's full install.
2
https://tex.stackexchange.com/users/175
1489
1,038