Tag Info

New answers tagged

1

Here is how I would do it: \documentclass{article} \usepackage{mathtools} \newcommand*\Vector[1]{\mathbf{#1}} \DeclarePairedDelimiter{\norm}{\lVert}{\rVert} \DeclarePairedDelimiter{\something}{\lbrack}{\rbrack} \begin{document} \noindent Either \begin{alignat}{2} \norm*{\Vector{R}}_{F}^{2} &\le \norm{\Vector{R}}_{F}^{2} + \lambda ...


4

You can add some negative space, for example \hspace*{-1em} before the last = MWE \documentclass[10pt]{article} \usepackage{amsmath, amsthm, amssymb} \begin{document} \begin{align} \Vert\mathbf{R}\Vert_F^2 & \le \Vert\mathbf{R}\Vert_F^2 +\lambda\Vert \mathbf{B}^{'}\Vert_F^2-\sum_{k=1}^{m}\Vert \mathbf{B}^{'}\mathbf{A}\Vert_F^2 & \hspace*{-1em} ...


2

Not introducing a spurious space before the url in the first argument to \href seems to solve the problem. I say 'seems' because I do not have access to that version of Reader or to Windows. Hence, I tested this with an older version on GNU/Linux. However, I reproduced the problem and tested the solution, so I'm guessing it is the same. (If not, let me know ...


1

The canonical tool for this task is pdftk, which is available on most Linux distros out ouf the box, on MacOS via MacPorts/fink/homebrew, on Windows via cygwin or as a binary from https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/. To concatenate all PDFs from a folder folder just write: pdftk folder/*.pdf cat output binder.pdf pdftk is a pretty ...


1

As Harish suggested, the pdfpages package seems a good way to do it, when you don't want do use ghostscript. The example below should give you a start for a main document. I don't know if it's more rapid than the solution you have now, but it's what I'd use. \documentclass{article} \usepackage{pdfpages} \title{Some kind of a notebook} \author{Martin} ...


2

Next code was taken from this answer and slightly modified adding multi=task, border=2mm options. It uses standalone class as cropping tool and tcolorbox to produce notes (task in this case). \documentclass[multi=task,border=2mm]{standalone} \usepackage[theorems]{tcolorbox}% version 2.51 (2013/09/16) \usepackage{lipsum} \newtcbtheorem{task}{\strut ...


4

The --interpreter option doesn't work for console content. Console content will use the default Python installation instead. There's already an issue open for this here. The current workaround is to run pythontex2.py or pythontex3.py, instead of pythontex.py, when you need to select a specific version for the console. I hope to have a fix for this ...


2

The class europecv says \DeclareOption{utf8}{\AtEndOfClass{\inputencoding{utf8x}}} which is a very big mistake. At the time the class was first released, utf8 didn't support direct input with Greek, which was the main reason for using utf8x. Since some years, utf8 does support Greek, so there's no reason for keeping the option in that way. However, for ...


0

Thanks to the quick comments here, it became evident installing pdftolatex alone probably does not take care of installing latex. Rather, I chose one of the latex distributions suggested at https://help.ubuntu.com/community/LaTeX, then proceded to google-guess the missing packages arising from the specific missing file errors. Much better now! From here ...


0

I had more success by making the following changes to the procedure described in the question: Using Visual Studio 2010 (non-Express) or later Instead of Visual Studio 2008 Express plus Windows SDK for Windows Server 2008 Building from MiKTeX branch 2.9, revision 2476 Prepending the Windows SDK bin directory to the system PATH prior to building set ...


0

I just wrote an answer to the similar question psfrag substitute when using pdflatex. I am doing Latex marking on .pdf with Inkscape. Basically when saving a picture into pdf, you can select an option "filter all text and write it in an ancillary file". Then Inkscape creates two outputs, the pdf image without any text and a tex file you include, which ...


0

I don't know if you intend to write LaTex on a huge amount of pictures, but I'm using Inkscape to do that. Basically when saving an image into .pdf format, there is a box to tick which allows for extracting all the texts and creates an ancillary tex file which places it automatically in the right place. In your .tex files, you replace ...


1

\documentclass{article} \usepackage{graphics} \usepackage{media9} \usepackage{mwe} \begin{document} \mediabutton[ jsaction={app.alert('hello world!');} ]{\includegraphics{example-image}} \end{document}


0

Problem was that as far as LyX is concerned .sty files are raw LaTeX, hence only the file gets copied to the temporary directory where LyX does the compilation but not the dependencies referenced in that file - these get resolved only for .lyx files. I went with using an absolute path \graphicspath{{/home/username/latex/example/images/}}. That's going to ...


1

The -sDEVICE=pswrite output driver in Ghostscript has been deprecated since 12/15/2010. In Ghostscript versions >= 9.09, use ps2write or eps2write.


3

It would help more if you made the example a complete document but anyway that D is dcolumn syntax so most likely adding \usepackage{dcolumn} to the preamble will fix the problem, although that is untested as you have not provided a test file.


2

This was floating into my hard drive, I did not draw it for this question. \documentclass[]{standalone} \usepackage{tikz} \usepackage{xfrac} \usetikzlibrary{matrix} \begin{document} \begin{tikzpicture}[myarrow/.style={red,->,shorten >=0.25cm, shorten <=.25cm}] \matrix (m) [draw,matrix of nodes,inner sep=.2cm,ampersand replacement=\&] { ...


2

Use it this way: packages which uses PSTricks should not be loaded when running pdflatex and, of course, tikz and todonotes should not be loaded when running latex. My example use the postscript environment: \documentclass[a4paper,11pt]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage{eurosym} ...


3

The current package works. The current installation script apparently screws up and fails to uninstall all of the old version. I suspect this is because the tds file for the package is apparently somewhat messy but, also, because getnonfreefonts-sys mistakenly assumes that the packages it installs will be well-behaved. But the current installation still ...


1

You can use the otftotfm software to convert .ttf fonts to the necessary TeX font files.


3

I believe this will produce the output you want. But I think this could be much better if you clarified a bit about what you want. \documentclass{article} \usepackage{ifthen} \usepackage{etoolbox} \newbool{first_of_two} \makeatletter \def\@tmp{} \newcommand\test[2]{% \@ifnextchar\test {\@first@of@two@test{#1}{#2}} {\@singleton@test{#1}{#2}}%% } ...


1

The .log shows: runsystem(epstopdf --outfile=./essai-eps-converted-to.pdf essai.eps)...executed But the file does not seem to be generated, thus the conversion failed. Try to do it manually, the command is given above. Option --debug gives more hints, what might went wrong: epstopdf --debug --outfile=./essai-eps-converted-to.pdf essai.eps The Perl ...


2

There is a wonderful script to shrink a PDF: https://github.com/pts/pdfsizeopt . I've been using it for years and can recommend it. The main effect is that it compresses the embedded fonts. Very helpfull if a font is large, like Linux Libertine. The script shrinks such a PDF (if no pictures are included) to 10% of the size! Using it under Windows requires ...


0

All 4 graphs require only a few lines of code with the pst-poly package. It can be compiled with pdflatex, if you use the pdf option for your document class, provided you compile with the --enable-write18 switch (MiKTeX) or -shell-escape (TeXLive, MacTeX): \documentclass[pdf, x11names]{article} \usepackage[utf8]{inputenc} \usepackage{fourier} ...


2

In general PATH changes are better off added in ~/.profile (for personal use) or added to /etc/profile or added in the front of the PATH variable in /etc/environment. In any case always make a back up first. Why not ~/.bashrc? It will only be executed in a bash context. So when an editor is started from a menu, and it makes a system call to start LaTeX, it ...


1

You can set the division factor (DIV) to 10 (the default value) to reset the margins (11pt above): \documentclass[10pt,DIV=10]{scrartcl} \begin{document} \begin{center} \Huge{Heading} \end{center} Text \end{document} The division factor changes when you change the font size.


2

There is no amacite.sty package but there is an ama.bst bibtex style. It is not part of TeX Live, but you can find it on CTAN, for instance here. You'all have to install it by yourself, in your texmf-local directory, more precisely in \texmf-local\bibtex\misc\ and run texhash. Then use in your document: \bibliographystyle{ama}


1

Alright, I cooked up another answer. The following second version of the package imageeqn.sty reimplements the equation environment, the \[, \], \(, \) environments, and inline math between dollar signs. \NeedsTeXFormat{LaTeX2e}[1994/12/01] \ProvidesPackage{imageeqn}[2014/11/30 v0.2 Image equations] \RequirePackage{graphicx} \RequirePackage{environ} ...


1

I had a similar problem when including PDF figures generated with inkscape (original EPS plot from gnuplot with a PNG overlay with transparency) into a document compiled with pdflatex (from TeX Live 2013 distro). The bad thing was that the resulting PDF document could not be read by some viewers (including acroread 9.5.5). My solution was to use qpdf to ...


2

Prepare a shell script such as pdflatex -jobname multinils-english "\def\mylanguage{english}\input{multinils}" pdflatex -jobname multinils-norsk "\def\mylanguage{norsk}\input{multinils}" pdflatex -jobname multinils-nynorsk "\def\mylanguage{nynorsk}\input{multinils}" where multinils.tex stands for the name of your LaTeX file. ...


2

This works (except for the fact that you probably shouldn't be citing an "article" without a journal title...). The thing to note is that you can use both cite and natbib at the same time, so pick one or the other. This example uses natbib, but you can switch with cite if you like. \documentclass{article} \usepackage{filecontents} ...


3

I suppose you could write a package that compiles equations in subjobs, like so (call this package imageeqn.sty): \NeedsTeXFormat{LaTeX2e}[1994/12/01] \ProvidesPackage{imageeqn}[2014/11/30 v0.1 Image equations] \RequirePackage{graphicx} \newwrite\@out \newcounter{imageeqn} \begingroup \catcode `|=0 \catcode `[=1 \catcode`]=2 \catcode `\{=12 \catcode ...


3

epsfig in its current form isn't actually ancient. It was written at same time as graphicx but it is emulating the much older latex2.09 package of the same name. Its behaviour is identical to \includegraphics just a small syntax change \epsfig{file=foo,a=b,x=y} becomes \includegrahics[a=b,x=y]{foo} there is no reason at all to use it unless processing ...


1

Any suggestions on how to proceed would be welcome. I would prefer not to manually change any configuration files as I came across an admonishment not to do so in the pdfTeX manual. I never bothered to repair this kind of misbehaviour of Emacs, because if I encounter "TeX exited abnormally", I have a quick look at the output. You get it in a fraction of ...


1

In recent versions of auctex, it looks like it'll be more reliable to set TeX-command-extra-options, which is designed for just this purpose, and doesn't make you override the various forms of TeX-command. So this is a nice, non-destructive way of adding options without interfering with changes down the line -- like switching between TeX flavors, enabling ...


0

It turns out to be easier than expected. While the documentation is out of date, the solution is easy. install texlive-lang-hebrew and texlive-lang-other install the culmus-latex as per instructions (I used version 0.7, e.g., http://sourceforge.net/projects/ivritex/files/culmus-latex/culmus-latex-0.7/culmus-latex-0.7-r1.tar.gz/download) After that ...


1

I solved the problem by something very simple: In Options -> Configure Texmaker I typed the full path for pdflatex's and lualatex's and biber's binary. I got the full path by opening the terminal and typing "which [pdflatex|lualatex|biber]". It works now. However, I don't understand WHY providing the full path to Texmaker is necessary. In Terminal, I can ...


2

This is a bug in evince in Gnome3 under Debian Wheezy, which derives from a bug in cairo. It is not caused by LaTeX. Thanks to @HenriMenke for finding the bug reports. These identify cairo as the culprit: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=692828 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=697639 Apparently the problem is being ...


1

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


10

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: ...



Top 50 recent answers are included