2
votes
2answers
104 views

Add parameter to existing command produces error

I have this command in a template given by my prof \newcommand{\homeworkProblemName}{}% \newcounter{homeworkProblemCounter}% \newenvironment{homeworkProblem}[1][Problem ...
6
votes
3answers
386 views

How to place text and image above the exact subfigure?

I want to draw something like this: I am able to draw like this: This is the code for the same: \documentclass{article} \usepackage{tikz,subfig} \begin{document} \begin{figure} \centering ...
5
votes
1answer
2k views

Amsart: footnote for the author

Assume the following code: \usepackage{amssymb} \usepackage{graphicx} % if you want to include graphics files \usepackage{amsmath} \usepackage{amsthm}\begin{document} ...
2
votes
2answers
517 views

AUCTeX preview-latex previews are ugly (too narrow)

Is there a way to fix Emacs AUCTeX's preview-latex to make the previews look less ugly? Specifically, they are squashed vertically to a height of exactly one line of text. I have screenshots to show ...
1
vote
1answer
252 views

Aligning Decimal Points in Columns [duplicate]

I simply want to align the decimal points in columns. I know this has been answered already but I can not figure out how to apply it in my table. Forgive me, I am very new to LaTeX. This is the code ...
0
votes
1answer
3k views

Harvard Style Citation and Bibliography

I am new to LaTeX and I am having problems with my bibliography. What I want : I am writing my thesis and I want to have Harvard style citation and bibliography. ...
15
votes
3answers
321 views

Parsing strings containing diacritical marks (macros?)

I apologize that this question may seem very much like several other recent ones I have asked (Parsing leading hardspaces, Parsing a \$ as part of an improved \getargs command). They are all related ...
11
votes
2answers
804 views

Background color in pgfplots that extends beyond the axis of the plot

I am interested in adding a background-color to my pgfplots plot that extends beyond the axis of the plot. See the image bellow for clarification; I am interested in adding a background color such as ...
6
votes
1answer
205 views

Equation Counters in and outside Theorems

I am trying to setup the counters so that the equations and theorems increment by section and there is no overlap between equation and theorem numbering. I also would like to be able to number ...
13
votes
4answers
10k views

How to add line break to caption without using caption package

I wish to add a line break to a caption, but I would wish to avoid adding of caption package. Is it possible? \documentclass{article} \usepackage[format=plain, ...
1
vote
2answers
617 views

Empty space after adding an image [duplicate]

After adding an image I have an empty space. How can it be reduced? I used \FloatBarrier. But it did not worked. % Following copied by Marc van Dongen from comment from OP. ...
5
votes
1answer
10k views

Setting font size for caption package

I wish to set the font size for caption package, how should I do it, now I have this in my preamble \usepackage[skip=2pt]{caption}
7
votes
1answer
111 views

Why does \textit not produce the expected result when used with \usebox?

\documentclass[border=3pt]{standalone} \newsavebox\temp \newenvironment{definition} {\begin{lrbox}{\temp}} {\end{lrbox}\textit{\usebox\temp}} \begin{document} \begin{definition} Hello World! ...
7
votes
3answers
206 views

Using commands inside environment definitions

I want to do something like \newenvironment{definition} { \textit{ } { } } but of course it doesn't work, the braces get mixed up. (In other words, I want that within my environment, the ...
3
votes
1answer
177 views

How to create two separate sets of footnotes

I would like to create a document with two different types of footnotes, ideally separated verticaly : one for critical aparatus (with a,b,c as footnote marks), and a second set for commentaries (with ...
3
votes
2answers
925 views

TeX live 2012 full installation on gentoo linux

What is the "gentoo-way" to install the latest full TeX live collection? I know the tex live installer script to install the complete collection manually, but I would prefer to "emerge" a gentoo ...
4
votes
1answer
150 views

Set some letters in a title of a cited article majuscule [duplicate]

I use abbrvnat as bib style: \bibliographystyle{abbrvnat}. It seems that all the letters, except the 1st one, in the title field of an article are set systematically in minuscule (lowercase). But ...
4
votes
1answer
969 views

How to draw horizontal(row) legend without the surronding rectangle?

I found the following code to manually draw legend, but it produces vertical(column) legend. How to draw it horizontally? I don't want surrounding rectangle also. \documentclass{article} ...
3
votes
0answers
178 views

PGF: Externalize + Fadings differences in viewer [closed]

I've been working with the fadings library in PGF and I was having trouble getting it working with externalize. I finally figured out that it was working, but Apple's Preview does not display the ...
6
votes
3answers
695 views

line passing through a point and extending

What if I only want to extend the line 1cm in one direction but not the other? I found this on another post here from a year ago. \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc} ...
2
votes
1answer
128 views

Move address to the right and recipient to the left in a letter

I wanted to try to write letters in LaTeX but the problem about the layout of the letter is the fact that the sender's address is on the left and the recipient on the right but in French it is ...
3
votes
0answers
848 views

Missing vertical line in table [closed]

I'm new to LaTeX and learning quite quickly thanks to this site, among others that teach me quick fixes for my mistakes, but I can't seem to find a fix for this, I'm not able to draw the right border ...
1
vote
2answers
623 views

Create an exceptional A3 page within an A4-based report

I created a picture within a tool that fits exactly in an A3 page. However I need to place this picture within an report that has A4 pages by default. The picture contains lots of information so I ...
5
votes
2answers
1k views

Nomenclature not aligned

I have a nomenclature section in my paper where I defined my symbols. For example: \documentclass[twocolumn,10pt]{asme2e} \addtolength{\textwidth}{-1pt} \usepackage{graphicx} \usepackage{amsmath} ...
4
votes
2answers
742 views

Filling between an ellipse and a line

I want to shade from the line QV to the edge of the ellipse. How can I do this? \documentclass[11pt]{article} \usepackage{amsmath, amssymb, eucal, yfonts, setspace, sectsty, enumitem, amscd, ...
6
votes
2answers
4k views

Margin notes on both left and right?

I've been trying to put margin notes in both the left and the right margins at the same time. My attempts have gone something like: Lorem{\reversemarginpar\marginpar{Left}} ipsum ...
22
votes
2answers
475 views

Do the online LaTeX compilers use a TeX daemon to speed up their compilation?

There seem to be quite a few fabulous web-sites now that compile LaTeX online. I was wondering what techniques these sites used to speed up compilation of documents. It would seem they would be ...
14
votes
1answer
146 views

Should I use packages when writing a class

I am trying to write a class based on the book class (a thesis class for my department). My question is: is it bad for some reason (or, is it considered bad) to use packages in the class files ...
19
votes
1answer
990 views

Different vertical spacing (parskip) between concurrent section titles and paragraphs

I'm trying to remove the spacing between section headings, but maintain the paragraph to section heading spacing. Even though I set titlespacing before and after to *0, there is still spacing - quite ...
4
votes
1answer
10k views

\addcontentsline: lines added to TOC not numbered, and lines added to TOT not shown

Two problems arise when I add lines to the table of contents (TOC), and to the table of tables (TOT): The TOC lines are not properly numbered. The TOT lines don't show on the TOT. Any idea how to ...
6
votes
3answers
372 views

How can I reduce the repeated code with these tikz nodes?

This relates to an earlier question I got an answer to the first part and followed some links for the second and came up with a mishmash of code to get it doing what I want but I didn't understand ...
4
votes
1answer
375 views

How to set up psgraph to get the same output produced by pspicture plus psaxes?

In order to get a more balanced diagram (of a certain specified metric size, width times height), I usually also specify some offsets or adjustment values around the canvas (aka picture) and axes as ...
2
votes
1answer
541 views

How do I add a caption to a diagram generated with qtree?

I have a diagram that I created with qtree, but would like to add a caption to it. How can this be done?
6
votes
1answer
205 views

\autoref doesn't work correctly when used in tufte-book

i want to use the \autoref command (from the hyperref package) in the document-class tufte-book. mini-example: \documentclass{tufte-book} \usepackage{hyperref} \begin{document} ...
5
votes
2answers
230 views

Header and footer in the report class and how to hide the word “chapter”

I am trying to write a report class document, I numbering in the ToC for sections is not printing also how to hide or remove the word "chapter" for instance, my code is : ...
1
vote
0answers
555 views

“dashdotted” command not working for tikz package [closed]

I am trying to create pictures of graphs in TikZ in which I'd like some edges to be dashdotted. I am using TeXShop on both my office computer (Mac) and my personal laptop (Mac), and the file is ...
6
votes
1answer
304 views

Page number when using includepdf

Can you recommend an easy way to place the page number on an imported PDF? For instance, when using: \includepdf[fitpaper=true]{last_site/last_site.pdf} \includepdf was used twice because the code ...
3
votes
1answer
97 views

Problem with using multline and align

I am LaTeX begginer and when I run this equation, I am getting the error: ! Argument \align* has an extra {. Here is the equation. \begin{multline} \begin{align*} C_s & = \displaystyle ...
8
votes
1answer
159 views

How to use luatex callbacks to generate a verbatim copy of the input file

I'm trying to devise a LuaTeX solution for the question Extracting the contents of text in a specified environment into a new file, but it is turning more difficult than expected. To begin, I need to ...
2
votes
1answer
507 views

Top aligned tabular: \cline equivalent of \firsthline

When aligning tabular environments with the [t] option, one can use \firsthline (from the array package) instead of \hline when a line is required at the top of the table. Like so: ...
0
votes
0answers
37 views

error of Cannot determine size of graphic [duplicate]

I compile my LaTeX code as LaTeX ,it give an error Error: LaTeX Error: Cannot determine size of graphic in scope.jpg (no BoundingBox). If I compile as PdfLateX not errors...i need my output as a ...
1
vote
1answer
175 views

Displaying (source)Code in research article [duplicate]

I have this urgent need to display two pieces of code side by side for comparison in my article. Displaying a code, I've couple of requirement Should indent properly Output should be syntax ...
2
votes
1answer
237 views

Creating a particular environment with a left-side rule

I don't have much experience in creating environments, and my understanding of them allows me to create environments which do something at the beginning and at the end (like for instance, in a "proof" ...
1
vote
1answer
683 views

chapter number and title in one row

I need to add both the chapter number and the title in one row with centering: something like "Chapter 2 Title of Chapter". My code is \documentclass[12pt,a4paper,oneside]{report} ...
0
votes
0answers
47 views

change font to “times new roman” [duplicate]

How to change the font to "times new roman " in LaTeX? I used \documentclass[12pt,a4paper,oneside]{report} \usepackage[left=1.5in,top=1in,right=1in,bottom=5em]{geometry} \usepackage{fancyhdr} ...
7
votes
2answers
138 views

rectangle in corner of table

How to draw green rectangles in the following table. ‎\begin{tabular}{|c|c|c|c|c|c|} \hline & $D_1$ & $D_2$ & $D_3$ & $D_4$ & Supply \\ \hline $S_1$ & 19 & 30 & ...
2
votes
0answers
49 views

best practice towards ISO 19005-1 [duplicate]

please recommend your experience concerning the creation of a PDF/A (ISO 19005-1) when using pdflatex. my thesis will be submitted to a plagiarism check. they demand PDF/A, but without any clear ...
3
votes
1answer
142 views

Globally set the justification in a framed box

I want to show the text from a Python Interpreter in a Windows console. This should be plain text (like you see in a command line terminal). I also want to show Python code snippets with highlighting. ...
4
votes
2answers
250 views

Tabbing and font size change

As a follow up of a previous question Paragraph break when combining tabbing and font change I need to type snippets of code within a tabbing environment, but sometimes I need to change the size of ...
2
votes
1answer
474 views

Adding floating space between main text and footnotes

I have to typeset a text with several widows and lots of footnotes. The editor told me to leave an additional blank line between the main text and the footnotes and to use this space to print the ...

15 30 50 per page