Tag Info

New answers tagged

2

Yes, LaTeX will parse the left and right quotation marks correctly if you tell it to parse the input with UTF-8 encoding. \documentclass{article} \usepackage[utf8]{inputenc} \begin{document} ‘Hello’ \end{document}


1

I'm continuing egreg's answer, which fixes "bug" #2 by reducing font size or widening the text and thus avoiding line breaks. You can format the procedure's name in any way you like, by redefining the \textproc macro, e.g.: \algrenewcommand\textproc{\textit} If you don't like the italics that I chose, try \textrm instead. If you don't want to use ...


3

The problem is due to the narrow size of the column. You have two choices. Declare \footnotesize before \begin{algoritmic} \begin{algorithm} \caption{Equivalent Method Handle (MH) Detection} \label{alg:equivalentmap} \footnotesize \begin{algorithmic}[1] \State $mh$: A method handle to be proceeded. ... \EndProcedure \end{algorithmic} \end{algorithm} ...


2

Adobe has specified a syntax to open PDF files with some parameters inside URLs, see Parameters for Opening PDF files. With package hyperref, your PDF document can refer to other PDF documents. For example, the external document should be opened at page 4: \url{http://www.example.com/foo.pdf?page=4} ...


2

The equations are centred with respect to the left margin of the current itemize environment and the right margin of the page, not taking into account the equation number. A work around could be adding \hphantom{tag} to the right of the empheq environment. I also managed to get the item number vertically aligned with the first line of the align environment: ...


5

Almost five years after the question. With the latest versions of Metapost it is possible to change the default naming scheme for output files: the statement outputtemplate := "%j-%c.mps"; will produce, from file name.mp. files named as name-1.mps and so on. This is much preferable, because no further instruction is needed under pdflatex, which knows how ...


0

After an odyssey of trying anything that came to my mind and talking to Robert Koch i finally found a solution to my problem. I am going to post the answer so that in the off chance of someone running into the same issue in the future there is no need for endless trial and error. When i encountered the problem first i was using TeXstudio as an editor. ...


0

I had the same issue with Inkscape/Mac OS/LaTeX. I was able to deal with this by rasterizing only the problematic parts of the image and leaving the rest vectorized. To do this I opened the SVG file selected the object(s) in question in Inkscape and did Edit -- >Make a Bitmap Copy, and then saved as PDF. I couldn't get anywhere on this issue with Inkscape ...


1

Seems like you have local copy of textcomp in D:\Documentos\Tesis\Circuitos Eléctricos\Latex\Filtros\01. Capacitivo\graficos\scripts\primero\textcomp.sty that is out of date. You should use the Miktex package manager to install textcomp.


0

The problem appears to be related to the transparency of the PNG and PDF graphics I was using. I solved the problem by flattening the PDF graphics before inserting them, and opening the PNG files in gimp to remove the alpha channel from those files. (It would appear that pdflatex is invisibly spreading the transparent layer of transparent graphics across ...


0

Adding to Sverre's answer of using TeX Gyre Termes (tgtermes package): it doesn't work for me with \ttfamily / \texttt{} i.e. typewriter fonts. I get the following from pdftotext (version 0.12.4): rmfamily: zażółć gęsią jaźń ttfamily: za»óª¢ g¦si¡ ja¹« I have browsed The LaTeX Font Catalogue and found out the following solution -- use TXTT font for ...


4

You can use the Times font TeX Gyre Termes: \documentclass{article} \usepackage{tgtermes} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \input glyphtounicode \pdfgentounicode=1 \begin{document} \noindent \rmfamily rmfamily: zażółć gęsią jaźń \\ \ttfamily ttfamily: zażółć gęsią jaźń \\ \end{document} Copy and paste from the .pdf gives this ...


0

I would use ghostscript to remove the transparency once the pdf is generated, using gs -o converted.pdf -sDEVICE=pdfwrite -dHaveTransparency=false input_file.pdf


4

First it is graphicx not graficx \cventry has 7 arguments, you have given only six at some places. \cvitem has only 3 arguments, you gave six. \Csh{} is unknown for me, hence I have commented it. With all these corrections, here is your code: \documentclass[11pt,a4paper,sans]{moderncv} \moderncvstyle{casual} \moderncvcolor{blue} \usepackage{graphicx} ...


0

No caption + No headings + No floating = Smells like a list to me, rather than a table. Any desired styling/indentation can be added using built-in commands or a package for modifying lists such as enumitem. This solution can break across pages, unlike a standard tabular environment (especially unlike a tabular wrapped in a table environment). ...


2

The apacite.sty package that's loaded by class wrongly defines \PrintBackRefs in case back references are not wanted. Indeed, it defines it to be the same as \@gobble, but the end of an entry in the generated .bbl file is like \APACjournalVolNumPages{Journal of Economic Psychology}{25}{5}{565--580}. \newblock \begin{APACrefDOI} ...


0

After checking the log I double click on one message, and I discover that a file was missing, so I look for this file in the directory it was supposed to be, and it was there. The problem was that the file was let's say image1.JPG instead of image1.jpg. I am currently now using Ubuntu, and this was kind of weird because the same project with no modifications ...


1

You can use xmpincl, "which allows you to add arbitrary metadata in the Adobe XMP (Extensible Metadata Platform) format. But you have to write a separate XML file to do this" (suggested in threads here). They also propose a more recent package hyperxmp. You can find an example .xmpdata file and other files needed on creating high-quality PDF/A documents ...


4

You can use the package upquote and put the code in a verbatim environment. \documentclass{article} \usepackage{upquote} \begin{document} \begin{verbatim} data 'a list = Nil | Cons (e, 'a list) \end{verbatim} \end{document}


6

You can use hbox \documentclass{article} \usepackage[most]{tcolorbox} \begin{document} \tcbset{ enhanced, colback=red!5!white, boxrule=0.1pt, colframe=red!75!black, fonttitle=\bfseries } My own shadow \begin{tcolorbox}[title=My own shadow,hbox, %%<<---- here lifted ...


3

Perhaps there is natural width option, I did not find it. A small workaround: Wrap the text into a box and get the width of it: \documentclass{article} \usepackage[most]{tcolorbox} \begin{document} \newsavebox{\mybox} \savebox{\mybox}{This is a tcolorbox} \tcbset{ enhanced, colback=red!5!white, boxrule=0.1pt, ...


5

\relax is not undefined enough, use \let\ifpdf\undefined % working workaround \input eplain \pdffalse % restore cwebmac definition Just undefining \ifpdf not enough, the two systems define \ifpdf for different reasons, eplain uses it to test for pdftex, but cweave uses \ifpdftex for that and uses \ifpdf for use with dvipdf(m)(x) see: ...


5

It seems that your input source file is in UTF16 or UTF32. The UTF32 file includes (byte per byte): zero zero zero \ zero zero zero d zero zero zero o zero zero zero c ... TeX interprets \ zero as a control sequence with single character (ASCII-zero) and this control sequence (reported by TeX as \^^@ in log file) is not defined. Use only ASCII or ...


1

Another much easier solution is: don't use LaTeX in Matlab 2014b to label your axis. For example, you cannot have any thing like x_1^*. If you use only plain text in Matlab, then when you save the file to SVG, the text will be kept. You can then edit the .pdf_tex file generated by Inkscape to show the correct label. This is of course due to the bug of the ...


0

I think I figured it out. Go into your terminal and type in: which pdftex You should get some sort of directory where your latex is installed. like: /opt/local/bin/pdftex What you should do now is to change the directory where TexShop looks. Do this by going into Preferences > Engine: and changing the path settings to the directory that which pdftex ...


7

pdfTeX does not have image manipulating facilities. Images are included as they are. If an image, e.g. foobar.png, has the correct resolution, e.g. color image with 300 dpi, then a plain \includegraphics{foobar} will do. Option scale can be used to change the resolution, e.g.: \includegraphics[scale=2]{foobar} if the color image foobar.png has resolution 600 ...


1

If you're looking for a solution to the problem rather than an answer to the question (as I understand it), I'd recommend using arara. There's very good integration documentation available in arara's critically-acclaimed manual, chapter 4. Essentially, you place a few lines at the top of your TeX document like this: % arara: pdflatex % arara: bibtex % ...


8

Activate the hyphen in the coqdoccode environment, defining it as a hyphen followed by a zero kern. \documentclass{article} \usepackage[T1]{fontenc} \newcommand{\activatehyphen}{% \begingroup\lccode`~=`- \lowercase{\endgroup\def~}{\char`\-\kern0pt }% \catcode`\-=\active } \newenvironment{coqdoccode} {\flushleft\activatehyphen\ttfamily} ...


12

I don't think it is reasonable to expect a full list to be created and maintained here. I think it is better to explain how to figure out whether fonts have this support so that users can determine the current answer for a specific font for themselves. If nothing else, this will enable people to check whether an answer here is still correct. Thérèse is ...


0

I have managed to get the desired gray box using the code given below, thanks to the response by @egreg to the question I posted. My svgraybox environment is a slightly modified form of the one that was suggested by egreg. \documentclass[graybox,envcountchap,sectrefs]{svmono} \usepackage{newtxtext,newtxmath} \usepackage{makeidx} \usepackage{graphicx} ...


1

If you need bb parameters, you have to give correct values. \includegraphics[bb=0 0 1408 1056,width=0.49\textwidth]{IMG1.JPG} \includegraphics[width=0.49\textwidth]{IMG2.jpg} %bb=0 0 1629 1221 should be changed into \includegraphics[bb=0 0 563 422,width=0.49\textwidth]{IMG1.JPG} \includegraphics[width=0.49\textwidth]{IMG2.jpg} %bb=0 0 652 488 A command ...


6

It's probably better to use ^^^^043a which produces a character token, rather than use \char"043A which is a non expandable primitive accessing a font position. The character token is usable in more contexts (such as writing to tables of contents) and generally has less restrictions than \char. the ^^^^ notation (and \char"043A) will work in luatex or ...


4

The definition of the svgraybox in the class is wrong: it sets a right margin of 24pt and the result is exactly what you see. \documentclass[graybox,envcountchap,sectrefs]{svmono} \usepackage{newtxtext,newtxmath} \usepackage{makeidx} \usepackage{graphicx} \usepackage{multicol} \usepackage[bottom]{footmisc} \makeatletter \renewenvironment{svgraybox}% ...


9

Let me first expand on the possible ways of how to specify characters in microtype's settings: For pdftex, the following input methods are allowed: a character (like A) within the (7-bit) ASCII range you may also use 8-bit (eg., Ä), and UTF-8 characters (eg., …), if the glyph is defined in the input encoding. to remain portable, you may use text ...


-1

Under Windows just go to C:\Program Files(x86)\MiKTeX2.9\miktex\bin and run the file updmap.exe


3

The easiest way is to add an alias latex=lualatex to your .profile.


1

If you are using a Unix-like OS: Make a shell script which call lualatex and save it as latex. Add the directory to PATH as the first item. Example on bash (untested): mkdir ~/bin cd ~/bin cat << _EOT_ #!/usr/bin/env bash lualatex --output-format=dvi "$@" _EOT_ > latex chmod u+x latex cd ~ echo 'export PATH="~/bin:$PATH"' > .bash_profile ...


2

Before answering, let me ask again: Do you really want to use plain TeX? If so, here's a document that should compile with pdftex: \input miniltx \input graphicx \includegraphics{Figure10.png} \bye


7

Sometimes \looseness can be used to make paragraphs shorter. If it is set to 1, then TeX tries to make the current paragraph one line longer. In case of negative numbers, TeX tries to make the current paragraph shorter, e.g.: \documentclass{article} \usepackage{lipsum} \begin{document} \lipsum*[1] \lipsum*[1]\looseness=-1 \end{document} The best ...


0

Please read the documentation of hvfloat as you have not used anything of it's syntax. The source for your example should be: % arara: pdflatex \documentclass{article} \usepackage[a6paper]{geometry}% just for the example \usepackage[demo]{graphicx} \usepackage{hvfloat} \begin{document} \section{Test Section with Several Rotated Objects} ...


0

Because I rarely needed to use LaTeX, I used to use EC2 for compiling my documents. I liked that I could throw everything away when I was done, but the setup was time consuming. I found a better way. Docker is a great tool for this because you don't have to make any changes to your main system. Here is a way to use a Docker image I created. docker run -i ...


0

One way to conserve space is to get rid of everything LaTeX related when you are done compiling your document. Docker is a great way to do this. Here are ways to use a Docker image I created. docker run -i richardbronosky/latex-compiler < document.tex > document.pdf If you need supplementary files yon can in an uncompressed tar and it will be ...


2

Load titlesec with option pagestyles, remove fancyhdr and add this code to your preamble: \newpagestyle{myfancy}{% \sethead[\bfseries\thechapter~\chaptertitle][][]{}{}{\bfseries\thesection~\sectiontitle} \setfoot{}{\thepage}{} } \pagestyle{myfancy}


4

A user only needs to save the definition of \shipout just before \begin{document}, and restore it afterwards. Surprisingly, this also works when preview is loaded with the delayed option. \documentclass{scrartcl} \pagestyle{empty} \usepackage{pgfcore} \usepackage[active,tightpage]{preview} \let\myshipout\shipout \begin{document} \let\shipout\myshipout ...


2

Malipivo's answer is a general one, using the pdfpages package. You can also use the command line. Here's a solution $ pdfbook --short-edge --noautoscale true document.pdf $ pdfjam --noautoscale=true --no-landscape=true --suffix out document-book.pdf The first command makes the booklet. The second then just imposes the booklet pages without scaling into ...


3

You can do just the signatures reordering using pdfbook. Note that this program is different and independent from pdfbook from the pdfjam package (and I'm one of its authors, and current maintainer.) After you've used pdfbook to reorder the pages, I think you should be able to use pdfpages with options nup=2x1,landscape=false to generate the final PDF.


0

What about using nonstopmode instead of batchmode? As far as I know nonstopmode does the same as the normal mode, but does not hold on errors. batchmode is intended not to put a lot of output to the terminal.


3

I'm using two or even more steps with the pdfpages package to get a printable PDF. Let me demonstrate it on a simple example. First, let's prepare a 105x180 mm book with 16 pages, an original format. This is the input PDF file (*latex mal-a5.tex). Remove frame parameter in the real production. Second, we convert the obtained PDF file to a new one, ...


1

Maybe you want the procedia option, since you are using ecrc, along with the 5p option suggested by touhami? Note that the ecrc says to use 3p with procedia to get the output produced by the Word template, so if you need to emulate that, you should not use 5p. (You will not get two columns but presumably that is intended in that case.) ...



Top 50 recent answers are included