142
votes
17answers
48k views

Is there any way to do a correct word count of a LaTeX document?

Often assignments (or even papers) have a word count limit. That is not a big deal when using Word, but I don't know how to do that using LaTeX. My solution has been so far to compile the document and ...
4
votes
2answers
76 views

Break Lines in minted environment

Usually when adding code in a LaTeX document, I use the listings package. When trying to modify and personalise styles in listings, @1010011010 suggested to use the minted package. To be quite frank, ...
3
votes
0answers
35 views

Able to have pgfgantt move bars based on dependancies

Gantt Bars seem to be defined with a start and end time period: \ganttbar{Task 1}{1}{2} Since all my tasks take a fixed time and are dependant on each other, is it possible to have all the trailing ...
5
votes
1answer
64 views

Spurious leading horizontal space with \multicolumn in tabular

When I use a \multicolumn within a tabular (or tabularx) there seems to be additional horizontal spacing added at the beginning of the column even though the left alignment was specified for ...
4
votes
2answers
368 views

Choosing numbering on equations

I'm writing some course notes and through out I want to refer to the equation number in the book we are using, rather than numbering the equations within the document. In other words how can I decide ...
1
vote
1answer
34 views

Getting shaded headline flush with top of slide with outertheme tree in beamer

I'm using the following code (roughly) to install a left-right shaded background behind a beamer headline. The contents of the headline is set using the outertheme tree. The shading method is based ...
5
votes
2answers
747 views

How to hyphenate a reference that has a lastname with a hyphen?

I need to hyphenate a long lastname with a hyphen in it in a reference, e.g.: @article{LastHyphenName:2013xy, author = {Longlast-Namewithhyphen, Antonio and Anotherlastname, David}, title = {{How to ...
1
vote
0answers
167 views

acro package files in c:\Users\Bob\AppData\{Local,Roaming}\MiKTeX\2.9

I was perplexed by a message that acro.sty was missing, since I copied both of my root directories (2 localtexmf's) from one computer to another. The acro package does not show up in the MiKTeX ...
1
vote
1answer
36 views

How to change “reference” letter size

I use \bibliographystyle{abbrv} {\small \bibliography{reference}} for references. How can I change the size of the "Reference" letter?
6
votes
1answer
28 views

Longtable and floats: wrong table breaks on pages with floats (part 2)

I think I may have stumbled upon an undocumented feature regarding page breaking in longtable. The following MWE produces (at least in my TeXlive 2014 setup) a document in which the last paragraphs ...
0
votes
1answer
83 views

Songs package: Vertical spacing between songs

I am wondering whether it is possible to remove any extra vertical spacing between songs such that all songs have the same distance between each other. In the attached example it can be seen how the ...
2
votes
1answer
22 views

Lyx, harvard style reference help

i need to produce the following reference style in Lyx -> (AKAMAI, 2013). i'm Having lots of problems in finding a way to produce the above mentioned reference style. Any help how to achieve this ? ...
1
vote
1answer
230 views

Creating an organization chart and flowchart in Lyx

I use Lyx 2.1, document class : report. I want to make these two schemes with Lyx : 1-organization chart : 2- flowchart :
13
votes
2answers
427 views

Automatically generate graphics which shows light diffusion on a rough surface

I just want to make an image like this (using tikz or pstricks) of light reflexion and diffusion: What I am interested in is, how this can be done (semi)-automatically via tikz or pstricks: ...
16
votes
4answers
16k views

URL of cited web site in bibliography

I am using natbib und the chicago style as bibliography style. I am trying to cite a web site, but in the bibliography the URL (given in the BibTeX entry) is not printed. Is there a simple solution ...
2
votes
1answer
229 views

Sublime Latexing and Knitr on .RNW files : Send lines to R console for evaluation

I am using Sublime Text 3 and the Latexing package to apply Knitr to compile .Rnw files that contain both Latex and R code. Overall, it works well in that I can compile the .Rnw files into PDFs ...
3
votes
1answer
45 views

Horizontal Movement of a Rotated Label in PGFPLOTS

In the following code I have a long label at one of the arrow heads. I would like to rotate the label by 90 degrees and then place it right below the arrow head. I used the rotate option and the pos ...
0
votes
0answers
30 views

How do I add feature status labels to a software design document?

I'm writing a design document for a piece of software, and during the development this document will be referred to when looking at what features to develop next. How can I add labels in my document ...
0
votes
0answers
21 views

Passing language parameter to \RequirePackage through \documentclass

I've written my own CV class and set it up so all packages are required in the .cls file and the .tex file only uses \documentclass. I would like to keep it this way but still be able to select ...
0
votes
1answer
107 views

texstudio scripting:converting selected text

There is not ToUppercase ToLowercase function which convers text in my language from so called small letters to capital letters. how can i loop char by char in selected text in texstudio to convert ...
3
votes
1answer
87 views

Displaying two graphs adjacent to each other with their x-axes aligned

How do I align the following two graphs so that their x-axes are aligned? In both graphs, the top of the y-axis is higher than I want. It seems to be at a height between 13 and 14. How do I get ...
2
votes
0answers
27 views

Why does \includegraphics ignore the space in a filename? [duplicate]

I use the following code: \documentclass{article} \usepackage{tikz} \begin{document} \begin{center} \includegraphics{GR0568 q28.png} \end{center} \end{document} and get this output: Why does it ...
0
votes
1answer
24 views

Why is the package “label” useful to create europecvs

I have used LaTex just a couple of times and hence I know just a few things. I have an assignment where I should create my own cv, and for this reason I decided to do a search on the web to find a ...
15
votes
2answers
746 views

Automatically remove page number if document has only one page (but not if two)

I write a lot of documents (agreements) based on memoir with the article option. Normal pagestyleis plain (page number centered in the footer). Sometimes a document is only one page long, and a page ...
2
votes
1answer
34 views

multicol list spacing before and after section titles

How can I get consistent spacing before and after an itemize environment inside a multicols environment when the list is immediately after or immediately before the start of a section? The list in ...
0
votes
0answers
49 views

Beamer: How to showcase LaTeX-Code and results that look like scrartcl

We are currently working on a beginner's course for LaTeX. We are using LuaLaTeX and Beamer for the slides. We typeset code with the listings-package. We often show Code on the left and a result ...
1
vote
3answers
55 views

Aligning multiple places in equations using align

My question is simple. I've played around with the & symbol to align my equations neatly under each other, but I just can't get it to look nice. This is the closest I've got: ...
3
votes
2answers
109 views

Moving a tick mark

I would like to move the tick mark -2 on the x-axis from its usual spot to above the x-axis. I drew a dashed line from (-2,0) to (-2,-4) and I don't want it drawn over this tick mark. ...
2
votes
1answer
68 views

CMBright for math and Iwona for text?

Is there a way to load packages Iwona and CMBright so that Iwona is used only for text, CMBright only for math, and all text and math is sans-serif? The only command I've thought of so far are: ...
7
votes
2answers
123 views

How to use the total page count in a conditional expression?

I would like to have different footer or page style depending on whether the document has one or more pages. I am not very experienced with TeX programming, so the answers about "Comparing an argument ...
0
votes
1answer
39 views

RIS & crufty bibtex to biblatex without an OCD tool?

I have 30 years of bibtex in a file with some other notes. Bibtex doesn't mind, but biblatex does. Also, certain publishers (Nature, APA, MIT) don't provide bibtex but do provide dois or ris. I've ...
5
votes
2answers
68 views

Math operator always in textstyle

I would like to define a macro that expands to the same symbol as \sum but using the inline style (\textstyle) even when used in a displayed environment. Here's what I got: ...
1
vote
0answers
17 views

No page numbers in the appendix of book

I am using the package appendix in book. I cannot see page numbers. \documentclass[a4paper, 12pt, oneside]{book} \usepackage[toc,page]{appendix} \title{Title} \begin{document} Bla bla bla ...
44
votes
3answers
8k views

What is the difference of \mathop, \operatorname and \DeclareMathOperator?

One sees all kind of versions in source files for defining something like a limit etc. So my question is which one serves what purpose. Is there any "best practice" in chosing one over the other?
19
votes
4answers
2k views

How can I type “lambda-bar”?

I would like to be able to add the symbol "lambda-bar" (see below) into an equation. How can I do this?
2
votes
1answer
35 views

Page number is not printed on last page (before the appendices)

I have a thesis document where I use the following page numbering \documentclass[11pt,a4paper]{article} \usepackage{fancyhdr} \usepackage{setspace} \lhead{} \rhead{} \chead{Very title\\ Very ...
0
votes
0answers
45 views

Switch encoding from utf-8 to iso-8859-15

I would like to switch from the Unicode (UTF-8) to Western (ISO-8859-15). Would someone tell me how to do this, please?
8
votes
1answer
94 views

How to draw Area Charts [duplicate]

I want to draw an area chart, something like this I dont know how to fill the area with colors, here is what I have \documentclass{standalone} \usepackage{pgfplots} \usepackage{xcolor} ...
3
votes
1answer
31 views

eledmac: formatting endnotes

I try to format endnotes with eledmac in a way that I can use them to correct printing errors of the original text, but unfortunately i don't understand how to change the fonts. Say, for example, I ...
0
votes
1answer
10 views

Counting words with TexCount in quote environment

How can I enter a new counter with texcount to count everything within the \begin{quote} ... \end{quote} environment? I have tried the following, which gives me nil results. %TC:newcounter quote ...
7
votes
1answer
77 views

How to add a circle on left/right parentheses?

I need to use a new symbol to denote an operation defining by myself. How to establish a pair of new delimeters just as adding a little circle on left/right parentheses? The difficulty is there are ...
0
votes
1answer
848 views

Problem in Texmaker after reinstalling MiKTeX: 'the memory dump file could not be found'

I had MiKTeX, with TeXworks and Texmaker running fine on my Windows 7 machine, except the package manager crashed whenever I opened it. So I decided to uninstall and reinstall everything LaTeX on my ...
26
votes
1answer
7k views

\varepsilon vs. \epsilon

I cannot remember anyone writing the letter epsilon in any other way than \varepsilon in any math class; but in LaTeX \epsilon and \varepsilon are different symbols. Do any of you know why there are ...
2
votes
2answers
83 views

How can you automatically continue a figure on to the next page?

Below is my code, I have 5 figures (a, b,c,d,e) under Figure 1.. i want them to continue on the next page and not stuck in the middle. I want them to be one under the other i.e. vertically like the ...
0
votes
0answers
13 views

My table is refered in Alphabetical order! [duplicate]

In my text i put my table \ref{table:3} AND IN MY TABLE I START BY \begin{table}[H]\label{table:1} \centering But imagine my surprise when I see my table being referred as table a in my ...
1
vote
1answer
41 views

Bibentry does not show cite

I'm trying to get a full citation inside my text using the \bibentry command. But it doesn't show anything. MWE: \documentclass[draft=false ,paper=a4 ,twoside=false ...
9
votes
1answer
96 views

Why spaces are ignored even in textual arguments within \ExplSyntaxOn… \ExplSyntaxOff?

I've seen workarounds for having the spaces recognized within \ExplSyntaxOn... \ExplSyntaxOff. But I wonder why spaces are unrecognized even for (LaTeX3) macros arguments undoubtedly expecting text, ...
3
votes
1answer
103 views

A templating system in LaTeX [on hold]

I need to generate quite a few LaTeX files in an automated way. I do not want to use any templating engine in Python or Elisp (two languages I'm probably most comfortable with); I'd prefer to do it ...
4
votes
1answer
70 views

PSTricks 3D drawing — tweaking of parameters

Consider the following code: \documentclass{article} \usepackage{pst-solides3d} \begin{document} \psset{viewpoint = 15 -30 11, Decran = 10} \begin{pspicture}[solidmemory](-8.25,-1)(5.3,2.05) ...
3
votes
1answer
77 views

How to curve a Tikz node?

This is a very simple question. Is it possible to add a "curve" effect to a node? Consider a simple rectangle node: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} ...

15 30 50 per page