Tag Info

Hot answers tagged

8

Modifying the style file is not recommended since an update will reset your modification. The xpatch package is used for this. So, instead, you can add the following lines to the preamble of your .tex file (without touching the .sty file): \usepackage{xpatch} \xpatchcmd{<\command>}{<search>}{<replace>}{<success>}{<failure>} ...


4

While as indicated in comments I'd recommend simply requiring those packages you use directly, the idea of a 'tree' of package dependencies has been addressed for LaTeX2e in the pkgloader package: see Automated management of package options and loading order) for more on this. As described in the package documentation, the idea is that you give the list of ...


4

I would (and I do) cite it as a @manual: @manual{tantau:2013a, author = {Till Tantau}, title = {The TikZ and PGF Packages}, subtitle = {Manual for version 3.0.0}, url = {http://sourceforge.net/projects/pgf/}, date = {2013-12-20}, } The same goes for other packages.


3

Separating and numbering stanzas in verse environment Verses are frequently numbered (so, as an additional note to the first part of Gonzalo Medina's answer) you can find buried in the manual verses.pdf this explanation: Within the verse environment, the macro \\ must be used at the end of each line of a verse, except for the last line in each stanza. ...


3

As Herbert pointed out in his comment, adding \usepackage{etex} directly after the line with \documentclass solves the problem. This answer explains why this works.


3

This seems to work: \begin{filecontents*}{\jobname.bib} @article{papersubmitted, title = {{I love LaTeX, and you?}}, author = {Author1, Name and Author2, Name and Author3, Name}, year = {submitted}, } \end{filecontents*} \documentclass{article} \usepackage[authoryear]{natbib} \begin{document} \citep{papersubmitted} \bibliographystyle{plainnat} ...


3

You shouldn't put new packages into the texmf-dist tree; they'll potentially be overwritten by distribution updates. (Or more likely will just be forgotten when your upgrade to MacTeX2015 or whatever.) Since you're on a Mac, the appropriate place to add (LaTeX) package files is ~/Library/texmf/tex/latex/ The reason why putting the file into texmf-dist in ...


2

Two ways: 1) Launch MiKTeX Package Manager from the Start menu, select the package you want to install and right-click on it to ask installation: 2) Launch MiKTeX Options and in the General tab, select Askme first or Yes for Install packages on the fly. Thus when a package is not installed, compilation will be interrupted to propose you to install the ...


2

I've always been a big advocate of setting a letter using the default article document class, since it allows you the freedom you want in a natural way. There's no need to adjust the setting of the letter class to suit your needs rather than just writing it using another (more flexible) class. \documentclass{article} \usepackage{newcent} % Default font ...


2

The error is due to \usepackage{pdfsync}; the pdfsync package was a first attempt for providing inverse search from the PDF file to the TeX file, but it has several problems and, above all, it has been made obsolete by the SyncTeX technology now used by default in all TeX engines, provided the -synctex=1 option is enabled, which is by default with TeXShop. ...


2

I agree with Joseph that you should always explicitly require any package that you need, regardless of whether any other package has already loaded it, but to answer your question about logging the dependency tree, one can hook into \@onefilewithoptions like so (this is better than just hooking \RequirePackage as it also hooks classes etc): ...


2

A non-GUI option is GLE. It can be a little hard to use but for publication-quality data-driven graphs you can't really beat it. Here's a motivating example. I'm not sure how you'd create something like this that looks as good in any other package. It's possible in IPE but it can be tedious if you change the data and have to manually update the graph; with ...


1

A quick fix is to just put the .cls file next to the .tex file you're compiling (ie. in the same directory). Perhaps this is not a permanent enough solution for you (eg. if you're going to use this class file in many documents), but this is how I use IEEE's & OSA's journal class files (where once every few years at most I need to use a particular class ...


1

This is too long to be a comment, and too old to merit an update to my question. Three years after the fact, I've learned much about \expandafter, and perhaps even why I have to do \expandafter\expandafter\expandafter ... \foo \expandafter ... I think my cargo cult programming experiences with TeX/LaTeX can be summarized in two words: leaky abstractions. ...


1

Specifically for the TikZ graphdrawing library, I would recommend citing the following formally archived peer-reviewed article. @inproceedings{Tan12, author = {Tantau, Till}, title = {Graph Drawing in {TikZ}}, booktitle = {Proceedings of the 20th International Conference on Graph Drawing}, series = {GD'12}, year = {2013}, isbn = ...


1

balance.sty is part of the preprint bundle. The most recommendable way is to install preprint using the package manager of your distribution. For completeness, of course you could download balance from CTAN (.dtx and .ins file) and run the .ins file with LaTeX. Further explanation on installing can be found on this site.


1

There a list of packages coming with TeXLive 2014 here and you may use tlmgr list --only-installed > installed_texlive_packages.txt to get a simple text files with all packages installed on your system (from this answer). Without the --only-installed option this should print a list of all packages available, whether installed or not. Edit: There is also ...


1

Well: I use Ubuntu long time ago, I use to install the LTS versions and there I used to install TeXlive full until I found errors in some packages and I noticed my versions installed were older than the versions contained in the CTAN. As I use to proof a lot of packages and I use LaTeX for a wide variety of documents I decided to install TeXLive 2013 (and ...


1

subfig provides \ContinuedFloat command to be used like this: \documentclass{article} \usepackage[demo]{graphicx} \usepackage{rotating} \usepackage{subfig} \begin{document} \begin{sidewaysfigure} \centering \subfloat[First figure]{\includegraphics[width=0.28\textheight]{figures/a.png}\label{fig:a}} \quad \subfloat[Second ...



Only top voted, non community-wiki answers of a minimum length are eligible