{formatting} is for general questions about formatting document elements. Use this tag in addition to other tags specifying what should be formatted. For questions about font attributes (e.g., {bold}, {italic}, {small-caps}, {sans-serif}, {typewriter}), use the appropriate tag instead.
3
votes
1answer
66 views
Using \mathsection in the chapter
How can I use LaTeX to get the result like the following picture?
In this picture, $\mathsection{1} Hình thang và hình bình hành$ is the title of the first section. If I use \mathsection and ...
12
votes
1answer
106 views
First reference to equation underlined
In these days I'm writing at my Bachelor's Thesis and I've got a new problem. I have to underline the first reference to figures, tables and equations. By searching in the Internet I've already found ...
2
votes
1answer
41 views
Design of index change, when I push makeindex
Are there somebody who can help me to solve this problem.
I have downloaded a template from this website.
Before I push on the makeindex it looked like this:
and after it looked like that:
But ...
2
votes
1answer
40 views
Fixing alignment with the rest of the text
The image included above is what I want to replicate - I want the name to appear on the top left, and the address/email-id to appear on the top right, and I want both of them to be aligned with the ...
12
votes
2answers
217 views
How to have a number directly under a decimal point?
I am trying to write a number in quaternary form and would ideally like to show this by having a four underneath the decimal point. I've searched around, but can't figure out how to do this so any ...
1
vote
1answer
59 views
How can dramatist verse speech prefixes be put on the same line as speeches?
Using the verse environment from the dramatist package, I would like to have the speech prefixes on the same line as the speeches, as they are for the prose environment.
There are a number of hooks ...
1
vote
0answers
51 views
Produce parentheses around number of equation
Is there any direct command which can help me to put the number of a equation in the parentheses, for example if I write the following:
\begin{equation} \label{eq:1}
this is my equation
...
2
votes
0answers
79 views
Pgfplots: How to make the plot exceed the axes
I am plotting a spike using pgfplots. I want to make the y-axis until (4) only. However I want the plot of the spike itself to continue beyond the y-axis (say until 10).
Is there a possible way to do ...
7
votes
2answers
113 views
Making a lattice with numbers on vertices
Anyone who is familiar with the problem of counting up/right going paths in a rectangle from bottom left corner to upper right corner knows that one way of doing this is doing it by recursion. I want ...
5
votes
1answer
77 views
format special words in text
Is it possible and furthermore constructive to make LaTeX automatically format specific words in specific way? Let's say, for example, I'd like to have every occurrence of the word "hello" in a bold ...
3
votes
1answer
85 views
Displaying a probability tree on beamer
I would like to modify the code here :
http://www.texample.net/tikz/examples/scenario-tree/
in order to make it fit on beamer page.
The code works on a regular article page, but the tree is way too ...
5
votes
2answers
66 views
How to create multicolumns list environment with the package 'enumerate'?
Let us consider The following example
\documentclass{article}
\usepackage{enumerate}
\begin{document}
\begin{enumerate}
\item Which of the following numbers is the largest ?\\
...
1
vote
1answer
84 views
Change axis number format for external tikz file
I'm using \input{filename.tikz} to include .tikz graphs created by matlab2tikz in my LaTeX document. As shown in a comment on this question it is possible to change the plot marker size when the ...
0
votes
1answer
174 views
0
votes
1answer
48 views
How to change the font of URL in the bibliography [duplicate]
When using the natbib package the URLs are printed and formatted in the bibliography in a different font from the rest of the document which looks nasty i.e. monospace Typewriter.
I am having ...
3
votes
1answer
49 views
How to include Appendices' name in LOF?
I would like to know how to show Appendices' name in LOF if they contain figures.
% % % % % % % % % % PACKAGES % % % % % % % % % % % % %
\documentclass[11pt,a4paper]{report}
...
3
votes
1answer
96 views
Appendices' sections at subsection level in TOC
I would like to know how to show appendices' sections (B.1, B.2) at subsection level in TOC.
MWE:
% % % % % % % % % % % % Packages % % % % % % % % % % % % % % %
...
2
votes
1answer
48 views
Formatting a conditional table of coefficients in LaTeX
I'm totally blanking on how to format this, or even what to use as a search term to see if anyone has asked about it before. I would like to make a conditional table of coefficients (ie. two tables ...
3
votes
2answers
182 views
How do I create a simple page of homework in LaTeX?
I've been frustrated with using Microsoft Word for typing out equations, so I've decided to switch over to LaTeX to write all of my homework with. I've never used LaTeX before to typeset anything, so ...
8
votes
4answers
243 views
Is there a ready solution to typeset a diff file?
In a text about Git I want to typeset diffs similar to this visualization:
Commit details on GitHub.
Is there any ready-made solution to that, especially the coloring of the diff lines?
(In other ...
2
votes
2answers
65 views
how to control font and paragraph formatting in margins
i'm having a hard time to figure out how to control the exact appearance of margin text (such as is output by the \marginpar command). i'm using XeLaTeX with packages such as geometry, fontspec, ...
3
votes
1answer
57 views
biblatex-juradiss and german juristic commentaries
I'm writing my master’s thesis and I'm having troubles formatting citations the way I need to. I've tried to modify the solution given in this thread but without success.
I'm using biblatex with ...
3
votes
1answer
128 views
Footer in Beamer
I found in this related topic Add Footer Text to All Slides in Beamer a nice code for footer in beamer with the Frankfurt theme.
\setbeamertemplate{footline}[text line]{%
...
2
votes
1answer
56 views
Formatting capital letters in math mode
This is perhaps a simple question, but I would like to print a capital I in my LaTeX document (beamer specifically) inside a $...$ construct. I would like my I to appear more substantial by having ...
3
votes
1answer
84 views
In “math-mode line” non-math type
I'd like to type non-math text inside of the bracket math text lines, or know of a better way to do what I'm trying to do.
In the following, I don't literally type \nomath. I don't know what I need ...
3
votes
1answer
55 views
Fit four authors across on one row in “sigplanconf” style?
Is there some hack out there to make it possible to fit four authors across in one row in the sigplanconf class?
No matter how short each author's name, affiliation, and email is, by default the ...
1
vote
1answer
40 views
Problem with ragged lines
Somehow, the lines in my document are all ragged, i.e. the further use of \raggedright does not change the document. I do not know the command to undo this (I believe not ragged is the preset). Here ...
2
votes
0answers
51 views
Problems in customizing Memoir page size
I have followed the suggestions proposed in:
Customizing Page Size in Memoir
to customize Memoir page size, and although the page size changes, the text block doesn't fit the page. It seems that the ...
4
votes
1answer
41 views
How do I stop the text on my flashcards from overshooting the area?
This is not using the flashcards class because that does not print the cards in a way that I want them to be printed. That is why it is a modified article class. I have recently tried a set this up ...
1
vote
2answers
61 views
\Rightarrow with text above it [duplicate]
When using the command \Rightarrow is there any way to put text above it? I have tried \overbrace but is there a way to do it without this?
2
votes
3answers
76 views
Equation spacing
Hi if I have multiple equations on each line is there a better way to space them out on the same line other than using /;?
\documentclass[11pt,a4paper]{article}
\usepackage[latin1]{inputenc}
...
1
vote
2answers
71 views
Formatting of an array of equations (left alignment)
I have the following text in a matrix environment. Is there a better way to format it, say with each column being left ordered, and how can this be done?
$$
\begin{matrix}
\Gamma^{i}_{\mbox{ ...
4
votes
1answer
34 views
Two “glossary” elements being generated on my first glossaries page [duplicate]
I'm successfully generating a glossary, but for whatever reason I'm getting a rogue "Glossary" element before my first glossary entry, but after my Glossary heading. Here's the relevant example code:
...
3
votes
1answer
52 views
How to make the hyphen show right in the middle of the paragraph title and its content
I am writing paragraphs that seldom require titles. I'd like the paragraph name to be separated from the actual content with a symbol. It can be an hyphen or whatever. My issue is if I type:
...
1
vote
1answer
29 views
vbox overflow when using TitleGM causing a blank page to preceed the title page
I'm getting a blank page that precedes my title page, and I suspect that it is due to the vbox overflow warning that I'm getting. The problem is that I don't know how to properly adjust the vbox ...
4
votes
0answers
74 views
Index with a combination of one and two columns
I am using the following to create my index file.
heading_prefix "{\n\\bfseries\\color{black} " % insert in front of letter
heading_suffix "\\hfil}\\nopagebreak\n" % append after letter
...
2
votes
1answer
103 views
Appendices at section level in TOC
I would like my appendices to appear in TOC at section level instead of at chapter level.
Like this:
Appendices
A My appendix 1 . . . . . . .
B My appendix 2 . . . . . . .
...
1
vote
1answer
73 views
How To Fill Leftover Space
I am making a fairly space intensive LaTeX "cheat sheet." Right now, I have added a single table, as so:
However, there is a large gap to the right of this table that I would like to fill with a ...
1
vote
1answer
79 views
Increasing vertical distance between bibliography items [duplicate]
Numeration in the bibliography looks like
1. Book1
2. Book2
I want to change it to
[1] Book1
[2] Book2
Also, I would like to increase a space between separate item.
I'm using the ...
16
votes
2answers
270 views
Colored underbraces for annotating equations
I am trying to implement my previous Powerpoint presentation in beamer.
I have a figure like
I want to create something like this in beamer.
I wrote a equation as follows but I couldn't write the ...
2
votes
1answer
39 views
Customize how the reference numbers appear in the bibliography when using biblatex?
I wish to customize the font for when printing the reference numbers (the to the left of all references, commonly surrounded by brackets) in the biblatex package. I hope that there is some command ...
4
votes
1answer
92 views
How Do I Indent My Proofs in the Following Manner?
I'm interested in indenting my proofs so that they look like this. Please note that the alignment of the word "proof" with the word "theorem" is significant. However, Google does not appear to yield ...
3
votes
1answer
113 views
How to change bibliography style from [1] to 1
I know that several people have already asked this question, but for some strange reason the suggestions are not working.
I have tried inserting:
\makeatletter
\renewcommand\@biblabel[1]{#1.}
...
3
votes
2answers
195 views
Section title with subtitle
I'm using the memoir class, I would like to create a more fancy section title, but I don't have the necessary skills in LaTeX. I found many fancy section titles on this forum, but I don't know how to ...
4
votes
2answers
80 views
Limit scope of formatting to within command
I wanted to generate a cover page for a tech report and so put the following in my preamble
\makeatletter
\newcommand{\coverpage}{\onecolumn \centering \large
\thispagestyle{empty}
...
4
votes
1answer
53 views
Command for the abbreviated author [duplicate]
I'm writing a beamer document, and using the following definition for author
\author[O. Castillo]{Oscar Castillo}
As far as I know, \@author returns the value Oscar Castillo
Question
Is there a ...
1
vote
1answer
82 views
Making Back-Referencing More Pretty
The question Back-referencing in LaTeX was marked a duplicate, so I can't post to that thread. Nonetheless, I found the code provided there by Ryan Reich to be a good learning exercise. His solution ...
1
vote
1answer
51 views
Is there a theorem style with slanted headfont?
I would like to create a theorem style with slanted text in heads. What's the way?
I tried with the thmtools package by
\declaretheoremstyle[headfont=\textsl]{slantedhead}
...
18
votes
1answer
172 views
Sloppy \left and \right?
The \left and \right commands often produce improvidently large delimiters. It almost always looks better to use delimiters that are just slightly too small than delimiters that are too large. With ...
5
votes
1answer
138 views
Omit zeros before the decimal point and convert scientific notation in siunitx/pgfmath
I'm trying to automatically format numbers in a way that doesn't convert say .8 to 0.8 while at the same time scientific notation is converted to exponent-free notation. siunitx seems to be able to do ...