3
votes
3answers
3k views

File ended while scanning use of \url using Bibtex.

I have a problem with one of my bibtex items and I'm scratching my head to figure out what is wrong. I've narrowed it down to the specific reference, and in partiuclar the specific URL latex is having ...
31
votes
7answers
6k views

Conditional typesetting / build

Let's say I have .tex file which is a set of problems and solutions, of which I want to make two pdf files, one which includes the solutions and one which doesn't. so I need to build the .tex file ...
0
votes
0answers
17 views

Testing if XeTeX is being used [duplicate]

I'm writing a package. One of its options is supposed to do some font selection. However, the commands it uses are XeTeX-specific, as far as I know: \newfontfamily, \setromanfont and so forth. So I ...
2
votes
4answers
95 views

Alignment in a piecewise function

I would like to have the following two equalities displayed with the = aligned. I use the following code. The = are not aligned, and 2.5pt is typeset before the = in each line! Also, there is an ...
3
votes
1answer
63 views

pgfplots: “group” legend entries?

Actually, I'm working on a study where I've to plot a lot of temperature data etc. Therefore, I use "pgfplots". Everything works pretty well, so that I get the result as shown in the attached picture ...
3
votes
0answers
22 views

Paralist package breaks hyperref pdf links [duplicate]

Something bizarre is happening with the clickable links that hyperref creates in my PDF file. Here is an example LaTeX file: \documentclass[12pt]{article} \usepackage{amsmath,amsthm,paralist} ...
1
vote
0answers
18 views

How to set the justification for all the standard paragraphs in a LyX document

This must be trivial. I am new to LyX but I have read most of the 183 page User Guide and not found the answer. When I change the justification setting (to remove right justify) it only does it for ...
0
votes
0answers
23 views

Output command arguments for spellchecking

I have a longer tex file which contains text in different languages. The languages are highlighted in different colors, e.g. {\color{blue} some text in french } {\color{red} some text in ...
4
votes
1answer
39 views

Having some page with roman number before beginning of document

I want to have a document. Before its Table of Content I would like to have some pages with roman page numbers for (Acknowledgments and etc.) Could you please say me how can I do that for this ...
11
votes
4answers
2k views

Is there a general command to disable indentation of paragraphs after figures and tables?

I am typesetting a manual, that uses normal indentation for paragraphs. The pages have a lot of figures and tables and I would like to have the paragraph after tables and figures to have no ...
31
votes
7answers
8k views

What is the recommended way to assign a value to a variable and retrieve it for later use?

What is the recommended way to define a variable inside a document and retrieve its value later? I've googled several different solutions, usually about ~10 lines long. I was wondering, that there ...
2
votes
1answer
30 views

Tikz externalization: Latex dvi/ps produces a4paper boundary-box around figure

I am successfully using tikz in combination with externalization and pdflatex for some time now. But now I need to switch to latex->dvi->ps. I followed the instructions from the tikz documentation ...
32
votes
4answers
21k views

How can I display a short chapter name in the header and a long chapter name in the ToC?

I am writing a book and one of my chapter has a very long title. As it can't be displayed correctly on the top of even pages, I provide a "short title name" via the \chapter[short title]{long title} ...
3
votes
1answer
20 views

“Author et al., submitted”, is that possible with \citep?

Is it possible to have "Author et al., submitted" using the package natbib? e.g.: @article{papersubmitted, title = {{I love LaTeX, and you?}}, author = {Author1, Name and Author2, Name and ...
9
votes
4answers
826 views

Writing Roman numbers in Equation

What is the command for writing roman numerals like I, II, IV etc. in an equation ? To be noted that my requirement is to write them within $$ ...$$ and not as counters or page numbers. Any light on ...
0
votes
0answers
21 views

Latex - after pseudocode =0 is added [duplicate]

I have some problems with using pseudocode in LaTeX. After I build the file =0 is added at the end of the file. Any suggestion how can I fix that? \documentclass{article} ...
182
votes
16answers
68k views

How to include SVG diagrams in LaTeX?

I'm making all my diagrams in SVG format using Inkscape and then I export them to some other format (e.g. PDF, EPS or PNG). I wrote a short script that does this for me automatically, but I'd like to ...
8
votes
1answer
159 views

How to prevent LTXexample from ignoring the paragraph indentation?

How to prevent LTXexample from ignoring the paragraph indentation? \documentclass[preview,border=3pt]{standalone} \usepackage{etoolbox} \edef\keptparindent{\the\parindent} \patchcmd{\preview} ...
2
votes
2answers
67 views

Creating Multiple-State Models (rectangular nodes)

I would like to replicate the following image for my work: I now have the following MWE: \documentclass[12pt]{article} \usepackage[margin=2cm]{geometry} \usepackage [english]{babel} ...
2
votes
2answers
72 views

Lots of text in one table cell

I need to place lots of text in one table cell. I tried to use longtable, but it seems to work, say, only on a row basis and gives terrible result in case when one row isn't fit in a page. Something ...
136
votes
17answers
33k views

Compiling documents online

I have heard rumors that you can compile documents online, and more specifically that Google has a free online compiler, but I have never been able to find any. Is there a way to compile documents ...
2
votes
1answer
84 views
+50

Formatting biblatex citation to handle non-latin (Japanese) author names

I am trying to customize biblatex (with biber as backend) so as to handle Japanese authors' names in an elegant way. Lets consider the following bibtex entry: @article{HondaSuzuki2014, author = ...
0
votes
0answers
53 views

How to get Latex formula in inkscape on mac?

I am using Inkscape version 0.48.2 on Mavericks OS X. I have to add latex formulas in some of the images but when I tried it through Extensions > Render > couldn't find the option there. After going ...
16
votes
1answer
5k views

Colors and legend in groupplots/barplot

In order to compare three items I use the groupplot command. For each item I have n different criteria to compare. Is it possible to set the color for each criteria itself? Meaning the first bar in ...
17
votes
4answers
788 views

How to shade text in different colors?

I need a single character in two colors. Figuring I could use the shadings library of TikZ, I followed the manual (section 23.4.1, the TikZ example): \documentclass{article} \usepackage{tikz} ...
5
votes
2answers
61 views

Sketching conic sections as intersections of cone and plane?

I would have thought this would be trivial, but I still haven't found an easy method. All I want to do is draw a cone, a plane, and their intersection (which will be a conic section). Something ...
6
votes
1answer
36 views

Footnotes not showing up (no tables involved here!)

I'm having a difficult time with footnotes because I'm trying to do a project report and some footnotes do show up, other don't. Here is a minimal document showing this behavior: ...
3
votes
2answers
126 views

Macro for moving hat symbol up

I use mathpazo font package and I think the hat symbol is too low. Can I make a macro to change behavior of all my hats? This question has a good example, but I don't want to have to retype all of ...
3
votes
1answer
84 views

Title Page with LaTeX

Output I obtained the following output with code given below: \documentclass[oneside,english,a4paper, 12pt]{book} \usepackage{a4wide, fullpage, color, fancyhdr, lastpage, changepage, multirow, ...
2
votes
1answer
25 views

Create a LTXexample environment ala figure*

How can I patch LTXexample to have the behavior of span two columns when used as LTXexample* (like using figure* in a twocolumn mode document)? Thus, the following code doesn't work due to the ...
2
votes
1answer
34 views

A frame option in beamer that I can't figure out [h]

Does anyone know what \begin{frame}[h] Content \end{frame} does? I can't seem to find it in the beamer user manual.
1
vote
2answers
29 views

pslegend with dot instead of rule

I have the following MWE \documentclass[pstricks,border=0pt]{standalone} \usepackage{pst-node, pst-coil, pst-plot} \begin{document} \begin{psgraph}[axesstyle=frame,Ox=0, Dx=0.1, ...
0
votes
0answers
15 views

Cannot set local Tex path on ubuntu with “vanilla” TeX Live

Using manual installation of TeX Live on Ubuntu (i.e. not via repos) I cannot seem to get LaTeX to look through my local tex directory path. I've set TEXMFHOME using sudo tlmgr conf texmf TEXMFHOME ...
1
vote
0answers
7 views

Two separate yet connected bibliographies in one document in LaTeX

I'm writing a thesis in LaTeX, and what I need is bibliography split into two separate parts: general citations and own citations (i.e. those positions I'm author/coauthor of). Those parts should have ...
5
votes
1answer
91 views

How can I remove the white space within a cloud in TikZ?

I am trying to produce a figure which contains a cloud drawn around a set of images. The code I have so far is: \node [draw, cloud, cloud puffs=20, aspect=2, inner sep=0cm] (pathways) ...
55
votes
2answers
38k views

When should we use \begin{center} instead of \centering?

After reading this question Should I use center or centering for figures?, I want to know the answer of the following. When should we use \begin{center} instead of \centering? For example, should we ...
3
votes
1answer
49 views

Redefine \part style

I'm using \documentclass{book}. I want to modify my \part style so that I can get a page that for instance illustrates the following content (basically Part title + a quote at the bottom): ...
1
vote
1answer
21 views

Help in acm style

Hello I am using acm package for my bibliography. In my report the reference numbers are being displayed in simple brackets i.e. (). However, i want them in square brackets i.e. []. Also, multiple ...
1
vote
1answer
21 views

Prooftree with nodes below other nodes

I require large prooftrees using the bussproofs, but the layouting seems to be not optimal. In particular, the package does not place nodes of the tree below other nodes, which would save a lot of ...
0
votes
0answers
23 views

Gnuplot+epslatex irregular dashed line

I'm using gnuplot+epslatex to generate some plots. This is what I put in the gnuplot code set terminal epslatex color size xwidth cm,1.1*xwidth font 9 header \fontsize{10}{13.2} ...
1
vote
0answers
21 views

Force a block to be backward while using a logo

I am preparing a pdf by using beamer applications in Latex. I have a logo which appears in all slides below on the right: Unfortunately, in one of the slide, it becomes hidden cause of a block: ...
0
votes
0answers
13 views

Bibliograph format for JACS

I am using the journal = jacsat (JACS) format and try to create a bibliograph with BibTex, using the \cite commands. This works, in principle, fine, as far as I can see, but I have noticed a flaw in ...
5
votes
4answers
3k views

Appendix without sections ?

There is only one appendix chapter in my thesis, which Latex defaults as Appendix A. However, I need it to show up as only "Appendix" without A or 1. Can anyone please tell me how to achieve that. ...
0
votes
0answers
17 views

Rendering a pdf in a different location, from a standalone tex-file that combines several chapters [duplicate]

I've seen a lot of these questions, but in my search I haven't managed to find an answer to my problem. I am building a directory system for simple use, where I have divided the first folder into ...
0
votes
0answers
19 views

Using tikzscale along with correct references in externalized tikzpictures

It is not advised to use tikzscale package along with mode=list and make based on Patrick's comment here: http://tex.stackexchange.com/a/89595/24167 However, the references (e.g. \cite) does ...
12
votes
2answers
323 views
+50

How can I print only Author-Date of the parent crossref in the bibliography entry of the child of the crossref?

I have an @article entry, which crossrefs a @periodical entry. I cite both of them. In my bibliography, I would like the article to refer to the periodical in the form of the citation, but i only get ...
5
votes
1answer
22 views

Asymptote: Project object with planeproject and XYplane

I need to draw the figure like the following: The idea is to first draw blue rectangle and then project it to XY plane. My current code is pasted below. import graph3; import three; ...
20
votes
2answers
583 views

The role of %&latex at the beginning of a source latex file

Could someone please explain what is the role of %&latex which is put in a source LaTeX file before \begin{document} command?
0
votes
1answer
49 views

Creating special table [duplicate]

How can I create a table such as following: I do not know how can I have A and B in the middle of four rows ?
4
votes
3answers
160 views

How to write two *unaligned* multi-line braces on both sides

I have a theorem which is about some 4 conditions, 3 of which are equivalent in one case, and some other three are equivalent in some other case, hence I would like to typeset something like this: ...

15 30 50 per page