Tag Info

Hot answers tagged

7

You can use fancytooltips; one restriction is that this won't work in most PDF viewers; you need Acrobat Reader: Your main document will look something like this: \documentclass{article} \usepackage{xcolor} \usepackage[filename=proofs,mouseover,noextratext]{fancytooltips} \usepackage{amsmath} \usepackage{amsthm} \usepackage{lipsum} ...


5

One way would be to use pythontex package: \documentclass{article} \usepackage{pythontex} \newcommand\insPython[1]{ \begin{figure} \centering \pyc{import os; print (r"#1")} \end{figure} } \begin{document} \insPython{bla bla} \end{document} You need to run pdflatex then pythontex (or pythontex.exe) and pdflatex again. Somehow I needed to use Python 3 ...


5

A starting point is xelatex format and the polyglossia package. I have downloaded and installed the Scheherazade font and I enclose a result of my efforts. I am sorry if I misspelled the Urdu terms. I haven't tested that but I think that you can wrap your Urdu words and BibTeX/BibLaTeX should processed them, it is worth some experiments. It would be great to ...


5

This can be achieved with Optical Content Groups (OCG). There are some packages that support OCG. A CTAN search revealed the following packages: Package ocg-p Package ocgx Package ocgtools Example for ocgx (randomly choosen): \documentclass{article} \usepackage{ocgx} \begin{document} \noindent My theorem. \begin{ocg}{OCG 1}{ocg1}{0} My proof. \end{ocg} ...


4

The meetingmins class allows you to have hidden items that are only displayed with the chair class option: \documentclass[chair]{meetingmins} \setdate{9th April 2014} \setcommittee{Sample Committee} \setmembers{ \chair{Some One}, Someone Else } \begin{document} \maketitle \section{Announcements} \begin{hiddenitems} \item Some hidden item. ...


4

It's not just in the align environment: \ding internally switches to the ZapfDingbats pzd fonts in U encoding which don't work in math mode (I guess they were designed only for text mode), as the following example demonstrates: \documentclass{article} \usepackage{pifont} \begin{document} \fontfamily{pzd}\fontencoding{U}% ...


4

I began by turning the code into a more minimal example to narrow down the problem. I then determined that the primary problem was that the francais option to babel conflicts with the use of \pgfornamenthline etc. Based on Gonzalo Medina's advice responding to my comment on his answer here, adding the babel tikz library resolves the problem: ...


4

Following on the approach of the Free Tengwar project that Amy describes. I would add that, if you are working in Texstudio, and UTF-8, you can use Free Mono Tengwar as the font in your source editor window. Options -> Configure TeXstudio -> Editor ... and then set the "Font Family:" to FreeMonoTengwar This font lets you use both Roman letters and ...


3

This does NOT fix the noted bug in polydiv. However, what it does do is allow you to overlay an x on the buggy solution, which answers the comment of the OP: "Any suggestions as to how I can add the x in?" To do this, it uses \stackinset. \documentclass{article} \usepackage{polynom} \usepackage{stackengine} \begin{document} ...


3

Here's a starter, built on MacTeX 2013 with the Charter font installed: % !TEX TS-program = XeLaTeX \documentclass[11pt]{article} \usepackage[lmargin=2in,rmargin=2in]{geometry} % wider margins \usepackage{setspace} \onehalfspacing % 130% spacing between lines: % http://texblog.org/2011/09/30/quick-note-on-line-spacing/ \usepackage{fontspec,lipsum} ...


3

You need to download all of the files at this site http://www.acm.org/sigs/publications/proceedings-templates This is Option 2: LaTeX2e - Tighter Alternate style. And you need to put them all into the same folder. Now open the sig-alternate.tex file in TeXStudio. It should now compile correctly. Since this class and example template uses bibtex. You ...


3

I moved manually the contents of the .zip file, but it should be equivalent to unzip in /usr/local/texlive/texmf-local Here's the structure I have (the first line is how I output it): > locate mtpro2 | grep texmf-local | grep 'mtpro2$' /usr/local/texlive/texmf-local/doc/fonts/mtpro2 /usr/local/texlive/texmf-local/dvips/mtpro2 ...


3

Two things come to mind: Firstly, you need to combine the various parts into one .tex file. I don't know of a better solution than copying and pasting (or writing a script that does it for you). Secondly, you can put the contents of any .bib files into a filecontents environment. For example: \begin{filecontents}{references.bib} @article{Chomsky2005, ...


2

Just as a supplement to R. Schumacher's answer, it may be worth explaining the difference between a class/style file (.cls) and a template/document (.tex). Class files are like recipes which determine the overall formatting of documents and specify some reasonable defaults. As an author, you don't typically need to worry about what's in them. You just tell ...


2

I suppose the procedure is the same as under Windows. You should add this line in your updmap.cfg: Map ua1.map then run (perhaps texhash, and)updmap-sys in order to redo the psfonts database. The right place to unzip your tds.zip file as far as I know is your local-texmf, which is created by TeX Live on installation. What the readme file says actually is ...


2

\documentclass[11pt]{article} \usepackage[T1]{fontenc} \usepackage[scaled]{uarial} \begin{document} This shouldn't be in arial because it is in the default document font, which is roman. {\sffamily Text here, which should be in arial because the package set the default sans family to arial.} This isn't in arial again. \sffamily Now all is arial as the ...


2

It is not exactly what you asked, but probably you can adapt it to your needs: \documentclass{article} \usepackage{framed, blindtext} %%%%%%%%%%%%%%%% \newcommand\lorname{\mdseries\textit{List of recommendations:}}%list of recommendations \newcommand\lorext{lor} % another aux-file is needed \newcommand\lortmp{} \newcounter{recommendations} ...


1

\documentclass{article} % put your font commands here for the fonts \begin{document} \frenchspacing\raggedright ... your document here \end{document} ^^ this pretty much does the job. You might add \usepackage[small]{titlesec} if "small fonts" ought to apply to titles as well. Btw, in your example, there's a hyphenated word buff-er leaving only 2 letters ...


1

SVMult is made by the german Springer Verlag. See their official FTP repository at ftp://ftp.springer.de/pub/tex/latex/: There are two directories svmult and the newer one svmult1. I think the latest svmult.cls from 2007 can be found at svmultt1/styles/svmult.cls.


1

As the solution --- being explicit about the paper size --- suggests, it is likely there is a disconnect somewhere regarding the actual paper size ('letterpaper' vs 'a4paper'). The package geometry usually guesses well, but if it can't figure it out, it defaults to the dvips driver, which may have different defaults from what you are actually using. Adding ...


1

I have added the majority of TeXLive to TeX Writer and with that then the following compile: \documentclass{article} \usepackage[all]{xy} \begin{document} \xymatrix{ A &*+[F]{\sum_{i=n}^m {i^2}} \\ & {\bullet} & D \ar[ul] } \end{document} and \documentclass[10pt, draft]{amsart} \usepackage{pgf} \usepackage{tikz} \usepackage{tikz-cd} ...



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