2
votes
0answers
3k views

! LaTeX Error: There's no line here to end [closed]

I've been using TekMaker for my book and it has been compiling with no major challenges. This weekend, I started getting the !LaTeX Error: There's no line here to end. error, and ...
4
votes
1answer
212 views

How to set the width of column in longtable method?

I`m trying to put a table in my document. it is bug in both width and height. So I need to use longtable, landscape and fixed width for the column. but I cant. Please help. I want this table fit in ...
4
votes
2answers
124 views

Parsing file name into document

I have a group of tex files named according to the following convention: xxx_yyy_zzz.tex I would like to use the components (xxx, yyy, zzz) of the file name as inputs in the document, n particular ...
5
votes
1answer
125 views

how to get the current month in two languages?

from time to time, a current month value has to be updated. it is a din a4 page, which includes german and english text. at the end of the page, only the month and year (without a day) is given. ...
9
votes
1answer
172 views

Remove numbering of unreferenced theorems

Can theorems, lemmas, etc., be automatically displayed without numbers if not referenced (like \mathtoolsset{showonlyrefs} for equation tags)?
8
votes
1answer
82 views

How can I expand macros and write the expansion to an external file?

I'm trying to do a bit of single-sourcing with my resume, and would like to write given information to an external text file. \documentclass{article} \usepackage{expl3,xparse} \ExplSyntaxOn ...
0
votes
0answers
19 views

How to prevent page breaking for lstinputlistings? [duplicate]

In my pdf created from latex sources I can see that sometimes \lstinputlisting will have a page break in the middle just because it happened to be in the end of the page. I would like to prevent it. ...
4
votes
4answers
550 views

Plot Continuous Line With 2 Points

Is there any way to plot a continuous line with pgfplot/tikz using only 2 points (i.e. it will extend past those points on its own) within the domain I specify?
5
votes
1answer
177 views

Remember coordinate in nested tikzpicture points to a weird place

I have problems with remembering the coordinates of names defined in nested tikz pictures. Look at the following minimal working example: \documentclass{article} \usepackage{tikz-qtree} ...
5
votes
1answer
472 views

Relative paths for \input and building from different directories

The minimal example If I have a directory containing my main LaTeX source file and it uses \input to incorporate some data in another file, I can use a relative pathname. E.g., with these files: ...
0
votes
0answers
20 views

How to reinstall TeX Live 2013 on ubuntu [duplicate]

I would like to ask how can I reinstall TeX Live 2013 on Ubuntu. I use the command rm -rf /usr/local/texlive/2013 but it gives me for every file this: rm: cannot remove '/usr/local/...': ...
3
votes
2answers
373 views

Write this equation

I want to write this equation in this way down but I have been unsuccessful. How can I improve this codes in order to get the equation below? \[ DeltaC{t} = \left\{ \begin{array}{ll} -1.40- ...
2
votes
0answers
44 views

Should I code a custom class for my template?

I am looking into the feasibility of using Latex to write reports. The reports which I generally write are quite repetitive and only really include small changes, such as an address, zone rules, ...
0
votes
1answer
116 views

Can I set the sidenotes on a Tufte-style handout to the left side of the page?

In addition, is it possible to have the side of the page on which the sidenotes appear alternate such that, for even-numbered pages, the notes will be to the left, while for odd-numbered pages, they ...
1
vote
0answers
130 views

Alternative for `\linebreak` in inline math mode

Looking at this question and the chat that followed it, I was wondering what would be considered best practise to include line breaks in inline math mode (breqn does not quite work; there's some ...
1
vote
3answers
180 views

how to deal with Long URL in LaTeX

I am a green hand in LaTeX. I sought online and found a lot of posts about the question I asked. However, I cannot follow their instructions. Could anyone give me a hand ? (OS is ubuntu 12.04.) The ...
4
votes
1answer
384 views

Reproduction of Word Report Template in LaTeX

I am trying to reproduce a word report template in LaTeX to speed up my report writing. I have some basic LaTeX skill, but I am having trouble producing the blue page border as shown in the picture. ...
2
votes
2answers
344 views

Creating protocol message diagrams

I would like to create small protocol message diagrams as seen in IETF documents (e.g. as in CoAP). Nice would be auto aligning depending the amount of text (bigger texts appear like in CoAP HLS) ...
2
votes
1answer
423 views

LyX Hyphenation

In LyX I want my paragraphs to be justified, without the use of hyphenation. I am using \exhyphenpenalty=10000\hyphenpenalty=10000 in my preamble and it works, but I notice that the first line of the ...
1
vote
0answers
199 views

Use bullets from mini-frames in sidebar outer theme

I would like to reproduce the individual "bullets" you have under section names in the "mini-frames" outer theme under the subsection names in the navigation sidebar created in the "sidebar" outer ...
4
votes
1answer
183 views

g-brief2 resize address window

I want to send a g-brief2 based letter with a very long address that does not fit the address window. The address is automatically hyphenated, which looks strange in this particular case. Does ...
6
votes
2answers
1k views

Print business cards in LaTeX

I am trying to print a business card that I develop in LaTeX, using templates that I found on the web and combined to fit my needs. I am using XeLaTeX to compile it, since it uses different fonts. My ...
2
votes
1answer
478 views

scrbook with amsbook style header/footer

I am using scrbook. I like the look of the running heads and page numbering of amsbook. Is there a way to get the same style with scrbook? I already tried: ...
3
votes
1answer
510 views

Quotation marks in Beamer

I have something like this \documentclass[xcolor=svgnames]{beamer} \usecolortheme[named=Crimson]{structure} \usetheme[height=7mm]{Rochester} ... \begin{document} \begin{frame} In fact ...
6
votes
2answers
139 views

too much space with tabto and enumitem

The MWE below indicates the problem. The final item, number 6, isn't aligned correctly (it is pushed some extra space to the right!). This is also the case when I change the number of tabs to 2. ...
11
votes
2answers
366 views

\pagebreak[number] only breaks with number = 4

I wanted to try out encouraging of pagebreak using \pagebreak[number]. As far for now it only breaks the page when I define \pagebreak[4] and only then (it won't work on any other circumstances). ...
8
votes
5answers
516 views

Using tikz: two boxes, two parallel linking edges

I'd like to have two boxes with text inside them atop one another with some vertical space, and with two parallel vertical edges linking them. With just one such linking edge, tikz makes it easy: ...
8
votes
1answer
109 views

Fixed position for pgfplot area

I use pgfplots to generate graphics for a beamer presentation. The graphics are placed on consecutive slides. This works great, but the graphic position is slightly moving from slide to slide, which ...
4
votes
2answers
2k views

Right align in eqnarray

I have a MWE where I use eqnarray for multiline equations. I want to right align those two text, but \hfill is not working here. I think I may use align, but here just want to know how to do it with ...
3
votes
0answers
94 views

floatrow - remove whitespace beneath figure

I have a page layout with exactly 40 text lines and some small pictures to distribute throughout the text. When I arrange 2 pictures at the page bottom in a row via floatrow and specify their height ...
1
vote
0answers
550 views

Problems converting matlab figures to pdf using /psfragfig

I am trying to include MATLAB figures as pdf files in my thesis. However after reinstalling my OS this doesn't work anymore and I am desperately trying to find a solution... What I do: I use the ...
4
votes
1answer
202 views

pgfplot number format: scientific notation on ticks, without factor 1

I have a pgfplot that is supposed to give me only a colorbar, no other plot. My code was inspired by this question. The logarithmic colorbar code was recycled from this answer and this answer. The ...
3
votes
1answer
186 views

Closing phrase (from \closing) & signature (variable) in the same line (scrlttr2)

The \closing command in scrlttr2.cls is \newcommand*{\closing}[1]{{% \setparsizes{\z@}{\z@}{\z@ plus 1fil}\par@updaterelative\nobreak\par% \nobreak\vskip\baselineskip% ...
4
votes
1answer
88 views

Overlapped Title and where to place the logo

I have prepared the front page of the book but the title is overlapped and I need some more formatting like the title Web Blog to appear at the center(its not centered) .And Where to put my college ...
0
votes
1answer
190 views

Natural deduction like proof

I'm not sure what the right word is for this kind of proof (in the picture): It is some kind of combination of natural deduction and normal math proofs. I'm wondering how I could do this in LaTeX. ...
5
votes
1answer
108 views

New line without hyphenation, just break it at the end of the line

I have a question about the automatic line breaking in latex. Right now i wright some text and its formatting it like this: Lorem Ipsum is simply dummy text of the printing and typesetting industry. ...
6
votes
2answers
625 views

Static node distance tikz matrix of math nodes

I would like to draw the following diagram in tikz, \documentclass[b5paper,10pt,twoside]{book} \usepackage[hmarginratio=1:1]{geometry} \usepackage{tikz} ...
2
votes
1answer
193 views

How to use \mainline with chessboard and skak packages on large chess boards?

I have a number of very large chessboards that I am setting, as a part of some work on infinite chess. I have been using the chessboard package, which is great. But I am having difficulty with using ...
2
votes
1answer
873 views

Need figure to break/ignore page margin (LyX)

I'm writing a report in LyX (using a personalized classicthesis-LyX) and I have troubles with my figures. What I want is to force a figure to break the page margin in order to center it (without ...
1
vote
0answers
13 views

problem with psfrag, eps file and texworks [duplicate]

I need to compile file using psfrag ans eps figure. I use texworks on windows and I have read that there are problems with pdflatex and I should go the latex->dvi->ps way but all I have found so far ...
6
votes
1answer
101 views

psgraph: using \psdot changes origin?

I have the following minimal example of a document: \documentclass{article} \usepackage{pstricks-add} \begin{document} \begin{psgraph}[labels=none,ticks=none]{->}(0,0)(-8,-8)(8,8){8cm}{8cm} ...
2
votes
0answers
88 views

German localisation of biblatex-chem-angew [closed]

I'm using biblatex-chem-angew with a MikTeX system like this: \usepackage[backend=bibtex,style=chem-angew]{biblatex} I want to use a German localisation, because [1] H. G. O. Becker, R. ...
4
votes
2answers
160 views

How can make a running example in LaTeX [closed]

I want a continues example where the same number is used for the example in different sections. Is it possible for LaTeX not to increase the counters for the examples? Regards minimum working code: ...
1
vote
0answers
29 views

can't renew math command '\exp', why? [duplicate]

In the preamble of the main.tex file I've written \renewcommand{\exp}[1]{ \exp \left( {#1} \right) } so that the math function \exp automatically includes the round brackets. In the file I wrote ...
16
votes
2answers
831 views

How can I produce a graph from a table?

What I want to do is plot a graph for a given data set. This must be simple to do, but I just cannot find a simple explanation of how to do it... I have the following table (no problem so far): ...
6
votes
1answer
371 views

Shaded box with section number

The code below is not working. This is because, I have savenotes in my TeX file, it works when I remove savenotes. Is there a way that I can get the code working without removing savenotes? Here is ...
3
votes
1answer
100 views

Macro for reference to a figure with a page number [duplicate]

I have Figure \ref{sp} which gives Figure 3 I want to get Figure 3, p. 13 Is there any macro for a reference of figure and page number?
6
votes
1answer
387 views

Memoir class forces recto page after \mainmatter

The memoir's \mainmatter forces the next page to be a recto page. How can I disable that?
6
votes
2answers
5k views

Biblatex, Biber, and LaTeX: citations undefined

I get "There were undefined references" errors and can't fix it after two days of trying. I have tried switching editors from Sublime Text 3 to TeXStudio on a Mac, then trying both on a PC. I am ...
5
votes
1answer
896 views

Algorithm2e - Disabling line numbers for specific lines

The Algorithm2e package has specific options for disabling/hiding line numbering for the whole document or algorithm, and then enabling/showing them for specific lines. I want to do the inverse. I ...

15 30 50 per page