Tag Info

New answers tagged

0

Try to remove the \\ at the end of the section title. \\ (generally) means new line. Like: \section{Development environment and tools}


5

By default a node is an \mbox so does not accept display material such as a list. If you give it a width then it uses minipage so does accept display material: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[remember picture, overlay] \draw (current page.center) node[text width=3cm] { \begin{itemize} ...


4

Since the file name encoding seems to be UTF-8, the file name needs to be reencoded from Latin-1 to UTF-8. This is also supported by package grffile: \documentclass{article} \usepackage[latin1]{inputenc} \usepackage{graphicx} \usepackage[encoding,filenameencoding=utf8]{grffile} \begin{document} \includegraphics{Bäckerstraße} \end{document} Alternatively ...


2

One way would be to provide the optional paramter to \\, or using enumitem control the spacing with parsep= option: Code: \documentclass{article} \usepackage{soul} \usepackage{enumitem} \begin{document} \begin{itemize} \item \ul{Long line of text underlined to demonstrate:} \\[2.0ex] This was too close to the above underline but now it is not. ...


5

If the only requirement is that you provide a .ps version of your document. just convert the .pdf to .ps at the very end. (if odd in these PDF times). As for a general method of being able to use latex and pdflatex on a single source have .eps and (.pdf or .png or .jpg) versions of each gfx indclude without extention, i.e. file, not file.ext. [1] [1] If ...


1

The immediate cause of the error was the blank line, which is not allowed in display math environments as noted in comments. Also you should never have a blank line before display math, or two display math environments with no text in between. One possible layout would be \documentclass{article} \usepackage{amsmath} \begin{document} First: ...


0

A similar problem is being discussed in this thread. I have found a solution on Inkscape forums. Open the PDF file in a text editor, and locate the following line: /Interpolate true Change it to the following: /Interpolate false This should stop the blurring.


1

The 2 qrcode generated here are not the same and the first doesn't give any info. The second does for me. So you see, same vcard format. \documentclass[english,11pt,a4paper]{article} \usepackage{qrcode} \usepackage[utf8]{inputenc} \usepackage{pst-barcode} {\obeylines\gdef^^M{^^J}% \catcode`\@=0 % \catcode`\\=12 % @gdef@n{\n}} ...


0

This is not a latex issue, the format of your vcard is wrong. Try the following: \documentclass[english,11pt,a4paper]{article} \usepackage{qrcode} \begin{document} \qrcode{ BEGIN:VCARD VERSION:4.0 N:Doe;John;;; TEL;TYPE=work:+1 (234) 567-8910 EMAIL:john@doe.com END:VCARD } \end{document}


2

graphics are searched on the standard TEXINPUTS path so rather than pdflatex path/to/file You can do export TEXINPUTS=path/to: ; pdflatex file (or setenv or set or whatever you need to set an environment variable)


1

The same technique that is used to Drawing on an image with TikZ can be used to place text on the image as well. Below I have placed the text 'CENTER' at the midway point between the south west and north west corners of the image: Notes: Even though I used a .jpg image here, it is the same if a .pdf file was used instead. Code: ...


4

You can't really substitute the way psfrag does as that uses the PostScript programming features to relocate the texts. However you can do \includegraphics[scale=1]{myfig.pdf}% \begin{picture}(0,0) \put(-20,10){\colorbox{white}{hello}} \end{picture} which will write hello on a white background over-printing the image. So with some careful choice of ...


6

When TeX, in interactive mode, shows the ? prompt after an error, you have a few choices, but you should keep in mind that the first character you type determines the subsequent behavior: return means “ignore the error and proceed” s means “run showing future error messages without stopping except for requesting user input” r means “run showing future ...


2

There is no specification what y value (=value of the \coordindex) is assigned to the label Adiff etc. in your MWE. You have to add ytick={0,...,7} because the row counter starts with 0. \documentclass{article} \usepackage{tikz} \usepackage{pgfplots} \usepackage{pgfplotstable} \pgfplotsset{compat=1.11} \pgfplotsset{every axis legend/.append style={ ...


2

As mentioned by others in this post, T1 fonts come with 256 code points; besides, to the best of my understanding you cannot use Unicode fonts that make use of CTL (Complex Text Layout) features with pdflatex. If your operating system is relatively new, in all probability it already supports Complex Text Layout (CTL). In such a case you may try using xelatex ...


8

You could build your timer with \pdfelapsedtime: \usepackage{atbegshi} \AtBeginDocument{\pdfresettimer} \AtBeginShipout{% \message{^^Jtimer: \the\numexpr\the\pdfelapsedtime*1000/65536\relax}% \pdfresettimer} would print the time it took (in milliseconds) for each page to be output (here p. 231 took 103ms, p. 232 took 44ms): timer: 103 [231] ...


1

Have you tried the \typeout{msg} command. http://www.personal.ceu.hu/tex/termio.htm It might not be the nicest solution but with some cleverly placed \typeout commands, you might find what you are looking for. And if I remember correctly, there is a comment package to comment out large parts of your (La)Tex code.


4

Let us assume you have the following files/setup: mybibstyle.bst mybibliography.bib Create a file myfile.aux containing the following: \relax \citation{*} \bibstyle{mybibstyle} \bibdata{mybibliography} This is literally the output from compiling the following minimal example: \documentclass{article} \begin{document} \nocite{*} ...


2

Don't use \begin{center}. Use \centering instead within a group \bf{text} is wrong. Use \textbf{text} or {\bfseries text} Same holds true for \Large{text}, it should be {\Large text} Having said that, you can reduce the default margins using geometry package. \documentclass[a4paper, 14pt]{extarticle} \usepackage[margin=1in]{geometry} ...


4

\documentclass{article} \usepackage[T1]{fontenc} \usepackage{kpfonts} \def\uppartial{{\mathversion{sf}\ensuremath{\partialup}}} \begin{document} $\partial$ partial derivative symbol in \LaTeX \sffamily \uppartial{} partial derivative symbol in \LaTeX \end{document} You can also use \usepackage[partialup]{kpfonts} if you do not need the default version. ...


1

Is this what you were looking for? You leave blank lines in the \title{...} which causes the errors and you did not provide the \horrule{}, so this solution adds one. Code \documentclass{article} \usepackage{graphicx} \newcommand{\horrule}[1]{\noindent\rule{\linewidth}{#1}} \title{ \horrule{0.5pt} \\ [0.4cm] \huge Artificial Neural Networks\\ ...


5

How about using cmbright to get sans serif math and rotating the \partial? \documentclass{article} \usepackage{cmbright} \usepackage{graphicx} \newcommand{\upartial}{\rotatebox[origin=c]{15}{\ensuremath{\partial\mkern-2mu}}} \begin{document} \[\frac{\partial x}{\partial t}\quad\textnormal{vs.}\quad\frac{\upartial x}{\upartial t}\] \end{document} Edit: ...


9

Partial solution. \usepackage{graphicx} \renewcommand*\partial{\textsf{\reflectbox{6}}}


3

texdoc web2c says --with-editor=cmd Change the default editor invoked by the e interactive command. See Section 3.5.3 [Editor invocation], page 12. Page 12 says that as an alternative to the command line you can set the TEXEDIT environment variable to emacs %s Hint for those who don't know this (like the Original poster): ...


2

OK, the issue seems to be solved for me. First of all many thank to @UlrikeFischer and @DavidCarlisle for helping me understand the problem. As can be seen in the Update1 section of the question, the system complains for the lack of some font, however that is not the case. I checked it @ C:\Program Files\MiKTeX 2.9\fonts\tfm\mathdesign\mdbch and all the ...


2

I modified the headline template of the split theme. You can set your custom header image via \newcommand\headerimage{<path to image>} MWE: \documentclass{beamer} \usepackage{mwe} \newcommand\headerimage{example-image-a} \usetheme{Copenhagen} \makeatletter \setbeamertemplate{headline} {% \leavevmode% \@tempdimb=2.4375ex% ...


0

I had the same problem on ubuntu in Kile, so probably this problem exists in all texlive compilers. For me, alone removing all dvips options solved the problem. It is not necessary to remove the epsfig package.


0

Maybe fragmaster may help ? It is an automated Perl script doing the same. See the home page of the project for a detailed procedure of how to use the Perl script in order to automate the procedure explained in the starred answer of this post.


4

The T1 font encoding only has 256 characters (all european) so is not suitable, pdflatex can only deal with 256 character 8bit fonts, so either you need a tex setup that exposes the alphabet in that way, or you may find it a lot easier to use xetex or luatex rather than pdflatex which can use system installed unicode fonts and process your utf8 input ...


7

You can reduce the letterspace with microtype (why the encoding=* is needed is one of its mysteries) \documentclass[11pt]{article} \usepackage[tracking]{microtype} \usepackage{lipsum} \DeclareMicrotypeSet*[tracking]{ttfonts}{ family=tt*} \SetTracking{encoding=*}{ -100 } \begin{document} \lipsum[1] \ttfamily \lipsum[1] \end{document} You can also change ...


7

When you do \newcommand{\foo}{bar}, the command \show\foo will tell you > \foo=\long macro: ->bar. When you say \def{\FOO}{bar} you get > \FOO=macro: ->bar. Then \ifx\foo\FOO would evaluate to false, because one macro is long and the other one isn't. If you plan to use \def in the command line, use \newcommand* which doesn't make \long ...


0

I see Tara found a solution, but for everyone else who's googling this: I had the same error report with pinlabel installed. Instead of not complaining that pinlabel wasn't installed, my windows installation of MikTeX wasn't complaining that I was using version 1.1. I would also get the error if I put a copy of pinlabel.sty in the same folder as my tex ...



Top 50 recent answers are included