All Questions

36 views

Problem with tcblisting at page break

I use a tcolorbox to display my listings and thats actually works pretty well. But if in my listing a page break occurs, then my predefined "basicstyle" property will be removed. And I have no idea ...
41 views

How to define a wrapper to a command that takes an optional argument?

What is the proper way to define a wrapper to a command which takes an optional argument (such as \chapter)? I mean a wrapper, not a clone, such that we can inject code into the wrapper without ...
171 views

How to write cases with LaTeX?

The code i used to write is this one $$X(m,n)= \begin{cases} x(n),\\ x(n-1)\\ x(n-1) \end{cases}$$ But I don't know how to write this one I appreciate any help. Edited: I'm sorry to add ...
5 views

Avoiding blank page after end of a chapter

I use report documentclass, and one of the capters ends at the bottom of a page. After that LaTeX leaves a blank page before the new chapter. How can I avoid it?
4 views

Glossaries: Groups not working

I want to use the sort=def option for glossaries together with style=alttreehypergroup. However, as soon as I specify sort=def, the groups are not recognized any more. MWE: % arara: pdflatex: { ...
4 views

Publication-style format to include statistical tables with the Coef, Odds Ratio, Standard Error, and significance

I was wondering if there is a publication-style format if I wanted to include the coefficient estimate, the odds ratio (OR), the standard error of the estimate, and the significance (i.e. stars such ...
14 views

Text centers in the cells and leaning text

Please I would like to make a table as this one but I have some problem to make leaning a text and centered in the cells. \documentclass[11pt]{book} \usepackage{geometry} ...
12 views

pstricks with “colorfunction” in a tikz loop

Trying to make a spiral of vectors (rotating arrow as a function of x-position) I came across tikz for making a proper loop. Concerning other loop solutions I had problems to apply more complicated ...
45 views

I can't write on file 'Filename.pdf'

Im new to latex and sometimes I get this error message: line 5: ! I can't write on file 'MasterThesis.pdf'. Please type another file name for output! Emergency stop.<to be reaad again>... ...
24 views

Error: 'I can't write on file 'Main.pdf'

I suddenly keep getting the error message in the title. I have no idea what I did wrong as I did not have this problem before. I know this error can occur if the corresponding pdf file is opened, but ...
33 views

There is a more compact way for drawing this quarter-car model?

I have written this code: \documentclass[tikz,border=10pt]{standalone} \usepackage{tikz} \begin{document} \pagestyle{empty} \begin{tikzpicture} % Sprung mass \shade[top color=gray, bottom ...
35 views

How to get the TexCalendarCompetition.Rnw build using debian jessie (currently aka debian testing)?

The TexCalendarCompetition.Rnw refers to Nicholas Hamilton's code contribution to the TUG calendar 2015 (see Nicholas' answer for details)
39 views

Möbius transform Tikz - special request

I would need some picture in Tikz but I don't know how could I achieve them. ( I don't know if exsist some code of it). There is a youtube video which shows the Möbius transforms in two dimension ...
18 views

How to pass text/strings from main file to beamertheme via beameroptions or is there an alternative way?

In this and this question I learned how to pass simple definitions like a location from my main file to a e.g. beameroutertheme. However this approach fails for longer strings or text blocks, in this ...
16 views

Automatic row (not line) breaking in tabular (or analogues) with a variable number of columns

I have some values which I need to put in a row-major form, i.e. fill the column of a tabular on the basis of its width, as described in the MWE. \documentclass[a4paper]{article} ...
9 views

How to load extra ticks form CSV file

I have the following following document, where the extra x ticks are defined manually. However, I want to have the ticks generated from the CSV file where the second column is 1 because the real ...
25 views

How to do ( figure and text)

How do I place the figure aligned with the text?
17 views

How to make a test on the current page number?

How could I test whether some label is on the current page, or on the previous or next one. Typically I would like to build a macro \onthispage{label}{text1}{text2} which would print text1 if the page ...
9 views

I am trying to simplify the heading styles of the scrbook-class for use in my thesis, but am unable to find a way to stop the headings from being underlined and chapters being marked by their numbers. ...
45 views

Fill available space in tabular square

I am trying to have the inner text of each square of my \tabular fill the whole space available. For example, in the tabular below, I would like my a2 and b2 occupy the entire column under s2 in a way ...
27 views

Draw line to rectangle

I want to connect a node with an edge of a complex shape. I am just able to connect it with the center. I have the following code: \documentclass[tikz]{standalone} \usetikzlibrary{positioning} ...
13 views

How to get a first unglossed line with linguex

I'm stumped with how I might use linguex to get an unglossed first line, then give a second line with morpheme breakdowns, the morpheme-by-morpheme gloss on the third line, and the free translation on ...
31k views

How to convert a scientific manuscript from LateX to Word using Pandoc?

I have a typical scientific manuscript in a LaTeX .tex file, and I need to convert it to MS Word .doc file. The reason for having to convert to MS Word is I'm submitting the manuscript to an academic ...
41 views

What's a convenient/appropriate way to override my document class' \paragraph style?

The document class I'm using (ieeetran) typesets paragraphs as in the following: ------- [space here] a) The Paragraph Title In Italics:[space here]The quick brown fox jumped over the lazy dog. The ...
10 views

Is deluxetable compatible with the endfloat package?

For my thesis, I am making a table using deluxetable and the aastex class but need all my tables and figures to go at the end of the document. The endfloat package seemed to be perfect for this, but ...
16 views

Can we get references to pgfplots to work with arXiv?

I have some plots created with TikZ and pgfplots. In the captions, I use \ref{...} with plot labels in order to get the marker printed there; a neat feature indeed. Now, when submitting to arXiv one ...
190 views

Drawing rectangle triangles with labels only in its sizes

I'm doing an exercise of Integral Calculus. The integral is $\int \dfrac{dx}{4-x^2}$. This integral can be solved doing $x = 2\sin\,\alpha$, and its solution is \$\dfrac{1}{2}\ln\,|\sec\,\alpha + ...
19 views

Set color of title page with memoir

I'm writing a report with memoir and would like to set the color of the title page. The pagecolor package looks promising but I can't figure out how to set the color of only the first of two pages in ...
26 views

Dividing line in a matrix

How can I Tex this equation? I try to have exactly the same result but for the moment I only succeeded in having intersecting lines... Thanks!
13 views

bibtex prints only a part of the references, what am I missing?

I run: bibtex file_name pdflatex file_name.tex pdflatex file_name.tex When I open file_name.pdf, and search for the bibliography I found that only 5 of 20 references have been included in ...
14 views

Vertical space insertion in different contexts

This is my first post, I hope it's not too redundant with existing stuff. Having used Latex for a while, but always with a very utilitarian approach, I always get confused with the \vspace command, ...
15 views

Cant get the points in a \parts to bold on right hand side

I would like to get the points on the right hand side of the page in bold on the same line as the question see below. This is all I have so far. Not sure how to \renew \begin{parts} \part[2] ...
749 views

save table on a separate file

I'm new to LaTeX. I have a table in the LaTeX format that I want to include in my document. Since it is a large table, I would like to save it in a different file and then just load it in my main ...
21 views

Use dotfill in listoflistings

I'm using the listings package by Jobst Hoffmann. I want to display all figures, tables and listings in the back of my work as lists. As can be seen in the picture, list of figures has a dotfill ...
12 views

Strange behaviour when compiling auctex from MELPA inside Cygwin's Emacs (w32 version)

I tried to compile the auctex from Emacs MELPA. The version is: 11.88.4 When I first open a .tex file, compile AUCTEX, and change to "TeX-latex-mode", Emacs will work properly, the menu bar also ...
64 views

pgfplot fill one bin with color

I am using pgfplot to draw a ybar graph. It can fill color for full graphic but I wish to only fill one bin with red color. e.g. fill bin 3 with red. Current code fill all bins with red color as ...
15 views

Preventing outer list separation affect nested inner list

I have increased separation between list items using \itemsep in itemized environment. How do I keep the item separation for inner list unaffected in minimum effort? One ad-hoc solution could be ...
13 views

gnuplottex not recognizing options

I want to use gnuplottex to draw graphs in a LaTeX document. The problem is, gnuplottex doesn't accept any options. A mwe would be like ...
37 views

Trouble switching between pagestyles

I am working with the following document: \documentclass[a4paper,11pt]{article} \usepackage[utf8]{inputenc} \usepackage{fancyhdr} \setlength{\headheight}{13.6pt} \fancypagestyle{plain}{ ...
17 views

newtx seems to require newpx: “cannot open encoding file for reading”

A specific MikTeX installation shows the following error for a document that includes newtxtext and newtxmath: !pdfTeX error: pdflatex (file ntx-ecth-tlf.enc): cannot open encoding file for reading ...
176 views

How to cross out a word in LaTex

How can I cross out a word in a sentence in Latex without using a package? MWE: \documentclass{article} \usepackage{cancel} \begin{document} %BeginDocument The first \xcancel{three commands} work in ...
30 views

Typeset functions with PythonTeX and execute them in console afterwards

I have the following python source code: def modulo(a, n): return a % n print(modulo(3, 10)) print(modulo(10, 10)) print(modulo(11, 10)) The first function definition gives a hint about the ...
64 views
+50

How can I typeset an environment and its literal equivalent in an environment?

This is a follow-up to the question: How can I typeset a command and its literal equivalent in an environment? It would obviously be useful to handle environments too. I imagine something like the ...
91 views

How to produce documents accepted for archival by http://facile.cines.fr/ with pdflatex

For long-term archival, the PAC system of CINES requires specific conditions for PDF files. This is required for french Ph.D thesis in particular. The document must pass the online validation at ...
19 views

Every \newtcbox{\FOO} with a certain text-color?

Imagine having a certain tcolorbox (manual) named FOO, called for via: \documentclass{article} \usepackage[most]{tcolorbox} \newtcbox{\FOO}{colback=red,colframe=blue} \begin{document} ...
21 views

colour options in tikz are good on dvi and ps but not so good in pdflatex and printing

I use tikz to produce graphics and then have some shading parts in black, gray. The graphics look good on DVI and PS and the printing is also good from these files. But when I use pdflatex, the shaded ...
42 views

How to typeset linguistic AVS

How can I typeset attribute value structures (AVS) and rules like the ones seen here?
38 views

How to adapt a class to use with xelatex/lualatex?

I have a custom .cls written (by somebody else) for use specifically with pdfLaTex engine. However, I want to compile my document with xe or lua for the sake of font support (and I don't want to use ...