Tag Info

New answers tagged

1

When you launch a binary from NSTask, it is not as if it had been launched from a terminal. Hence, there are no environment variables. So, the solution is to give explicitly to the NSTask the environment. Use: the method -setEnvironment: of NSTask.


2

I found a solution to my problem, and Ulrike's comment was the key for that (thanks again!) As she pointed out, the spaces before "W" and "Th" were too small for the Adobe Reader to be detected as spaces. Ulrike suggested to increase the interword spacing. However instead of increasing the interword spacing in general, it struck me as a better solution to ...


0

You can add a tooltip to a graphic: \documentclass[a4paper]{minimal} \usepackage{graphicx} \usepackage{pdfcomment} \begin{document} \pdftooltip{\includegraphics[scale=2]{chemie}}{tooltip} \end{document} If you want the graphic to be the tooltip, i'm afrais that's not possible. A PDF tooltip is text only! You may achive something like this by using OCG ...


2

For those less comfortable with the command line: I had this problem after upgrading to OSX 10.9.2 as well. After the upgrade, in my /Applications/TeX/ directory I found a FixMacTeX2013.pkg. Running this fixed the pdflatex issue.


3

Unrecommended way I would like to share my solution for historical purposes only and as a new version of postscriptbarcode is not a part of the TeX distributions, yet (April 2014). The presented solution in this question works well for me. I don't want to scare you, especially TeX beginners, but from time to time you might face a serious deadline even ...


4

You have to define a new symbol font, not overwrite one already existing: \DeclareSymbolFont{timespunct}{T1}{ptm}{m}{n} \SetSymbolFont{timespunct}{bold}{T1}{ptm}{bx}{n} \DeclareMathSymbol{;}{\mathpunct}{timespunct}{59} \DeclareMathSymbol{,}{\mathpunct}{timespunct}{44} Full example \documentclass{article} \usepackage{mathpazo} ...


5

hyperref introduces \theH<counter>. If it exists it is used for the destination name instead of \the<counter>. If the values of \the<counter> are not unique, define \theH<counter> with unique values using your other variables, e.g.: \renewcommand*{\theH<counter>}{<other variable>.\the<counter>} Pseudo code, the ...


7

TeX Live TeX Live is based on Web2C, from its documentation: 3.1 Option conventions To provide a clean and consistent behavior, we chose to have all these programs use the GNU function getopt_long_only to parse command lines. However, we do use in a restricted mode, where all the options have to come before the rest of the arguments. As a ...


5

If I run pdflatex -help on a machine with TeX Live, I get Usage: pdftex [OPTION]... [TEXNAME[.tex]] [COMMANDS] or: pdftex [OPTION]... \FIRST-LINE or: pdftex [OPTION]... &FMT ARGS Run pdfTeX on TEXNAME, usually creating TEXNAME.pdf. Any remaining COMMANDS are processed as pdfTeX input, after TEXNAME is read. If the first line of TEXNAME is ...


4

You should almost never specify natwidth and natheight (especially for pdf files) but if you do specify them they should Be lengths ie have units 10in or 5cm or whatever. If you omit the units it defaults to bp for compatibility with BoundingBox syntax. The intention of those keys was to tell (classic) LaTeX the size of image files that it could not read. ...


5

This seems to be a issue more about xkeyval than auto-pst-pdf: when you type the option as pdfcrop = {--hires} for some reasons the program gets called as pdfcrop hires--hires "<filename>-autopp.pdf" "<filename>-pics.pdf" which is incorrect. If braces are omitted pdfcrop = --hires or the space following = is omitted pdfcrop ={--hires} ...


2

I am using two steps. First, I draw an outline of the font and I put the font on it in the second step. There is \pdfliteral command in use, it doesn't work with xelatex, we must change it to the \special{pdf: code form. Because there is a different settings for left-to-right and right-to-left typesetting in xelatex and lualatex, I needed to use l and r in ...


0

Evince also has an overview page for that which uses the dbus script from the gedit latex plugin. https://help.gnome.org/users/evince/stable/synctex-editors.html


6

By default latexmk compiles all tex files in the current directory, including doing the necessary calls to biber, bibtex, etc. To run pdflatex on the files use latexmk -pdf or for lualatex latexmk -lualatex You can set default behaviour via a configuration file.


3

Use \protect to prevent too early expansion in moving arguments such as in titles: \section{Παράδειγμα \protect\eng{Something}} Moving means here, that the titles will be copied to the table of contents as well. They should do that in their original version, not expanded, that's why the \protect. Furthermore, you could might distinguishing betweeen TOC ...


1

\usepackage{times} it works for me. Update: It is better to use \usepackage{mathptmx} because times is obsolete according CTAN: The pack­age is now ob­so­lete, re­placed by the math­ptmx pack­age, which sup­ports Times Ro­man text and (mostly) match­ing math­e­mat­ics.


8

You could use a loop in the shell eg cd myfolder; for i in *.tex; do pdflatex $i;done


3

I imagine there are quite a few ways to do this- David Carlisle mentioned one in his comment, here's another: find -name "*.tex"|while read file; do pdflatex "$file";done


1

This is a MikTeX issue, as confirmed by Enrico Forestieri: For some reason, miktex does not understand/obey the command lyx inserts into the preamble when you check the "Enable Forward/Reverse Search" button in the toolbar and does not generate the necessary info. The generation of the required info can be forced by changing the converter ...


2

According to the documentation, the inputenc package allows the user to specify an input encoding (for example, ASCII, ISO Latin-1 or Macintosh) by saying: \usepackage[encoding name]{inputenc} The choices of encoding name are listed on pages 1-2 of the manual.


6

The option to keep the WinEdt Console hidden and to show it only during the compilation is "Pause / Do not hide the Window". When it is selected, the Console is always visible. When it is unselected, it does what you want. I think the correct configuration you are looking for is the one in the picture below:


1

I figured it out by selecting "No interaction" as well as "WinEdt Console":


1

Okay so I wrote a first draft of a working pipeline. As per @ChristianH's suggestion, I used pdfcomment For the script, I used: pdfminer to read the PDF annotations pdfrw to write the selected pages The code is here: https://gist.github.com/ivanistheone/219dad11a30efef82b7e


2

My first thought was to use the I/O file operations, e.g. \write or \immediate\write, but it faced a known problem with floating objects and their behavior. I had also problem around floating objects with own counter when there was no \global prefix. I rather used cross-references directly where a protected write is ensured. I can offer you this solution ...


0

I think this is a bug, or an error in the install directions, as I had the same result. Only, I managed to get MinionPro installed using FontPro, and it works amazing. Tried more or less the same thing with MyriadPro, and get exactly the same error about MyriadPro-Bold... is missing.


1

I use this, which works for me (though it not be the most efficient): %.pdf: %.lytex *.ly songs.ist lilypond-book --pdf --left-padding=0 --output=out --include=$(CURDIR) *$.lytex cd out ; pdflatex $* cd out ; makeindex -s ../songs.ist $*.idx songs.ist is my list of songs that I abuse makeindex to make.


1

Asking in #latex, |Zz| told me that I had to use \input instead of \include. No idea on the exact reason, but substituting the \include by \input on the anexos.tex include fixes. \input{anexos}


2

The name is amsmath, not ashmath.


3

The problem: apparently Freefem++ creates .jpg, .png, etc. images that are not readable by LaTeX. Thanks to the comments above telling me it was a problem with the image, I decided to try converting it to .jpeg (other formats probably would have worked as well, but I wanted jpg). To do this, I installed the ImageMagick package from terminal in linux, then ...


2

Works fine on Mac with 10.9.2 and with pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013). But: Save your file as plot_air_drag.tex (the error message indicates you are using an different file name) Modify your preamble \documentclass[a4paper]{book} \usepackage{pgfplots} \pgfplotsset{compat=1.10} \usepackage{python} Start Terminal, Type cd Space ...


1

I use this guide to for latexmk https://code.google.com/p/texworks/wiki/AdvancedTypesettingTools#latexmk



Top 50 recent answers are included