{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.

learn more… | top users | synonyms

7
votes
3answers
169 views

How can I format the formula

Hi I need to give the syntax of a formula as a figure. How can I format it \begin{figure}[h] Formula $\to$ PrimitiveFormula $\vert$ (Formula Connective Formula) $\vert \neg$ Sentence $\vert$ ...
3
votes
1answer
23 views

Procedure name with small caps in algorithm2e

I know that procedure in algorithm2e only allows captions like \caption{ProcedureName()}. However, I'd like my procedure to appear in small caps: \documentclass[12pt,a4paper]{article} ...
0
votes
0answers
39 views

Adding references to cv

https://www.writelatex.com/2006263vsgfgk#/5055479/ I want to add references to a resume template. In order to do this I added : \section{References} \cvdoublecolumn{\cvreference{Nicolai ...
6
votes
2answers
30 views

Bring down words from theorem

I have a theorem that goes like this: \documentclass[12pt]{book} \begin{document} \newtheorem{definition}{Definition}[section] \begin{definition}[Integers] Integers are positive and negative ...
0
votes
1answer
29 views

Adding picture in write latex

I have been using kile as latex editor but I found some errors and couldn't overcome with that so I i am trying to compile my tex file in write-latex. But the online editor is showing that picture is ...
1
vote
1answer
39 views

Rotated Text in Table Extending into Rows in Lyx

I'm trying to create a table with some rotated text in it, but the rotated text is extending into the rows below the cell, as shown here: Here is what my screen looks like in Lyx: I've tried ...
2
votes
1answer
60 views

How do I ensure that linebreaks in URLs occur at the right position?

I am writing my survey report using LyX. In my bibliography section, there is unusual behavior in my pdf. One reference breaks the margin. This is the issue You can see that one line is out of ...
4
votes
2answers
163 views

Missing character: there is no 'x' in font nullfont

I want to generate an image from a Tex file. I use a template and then programmatically insert LaTeX inside it. For example, if I want to create an image for x^2 + \phi, this would be the resulting ...
0
votes
0answers
16 views

JaxoDraw in Latex, \Line incorrect

I drew a feynmann diagram in JaxoDraw, however, when I want to compile it in Latex, it gives me the error that: ! Use of \Line doesn't match its definition. Can someone please help me? Thanks! ...
3
votes
2answers
104 views

Chapter template

What I want: What I already have: Can someone help me to recreate this kind of chapter heading (first pic)? All help is welcome! Code for the second picture: \documentclass[ ...
1
vote
0answers
43 views

Vertical chapter title in the table of contents

I'm about to write my thesis, and finally decided to do so in LaTeX. I'm still new to it though, and was wondering if something like this is possible in the table of contents: --+ | I | N | ...
2
votes
0answers
53 views

How to use \underline and \emph over several words with gb4e?

How can I underline several words in a gloss without messing up the alignment?
2
votes
2answers
29 views

Image inside exam environment above question

I am wondering how can I fix the constant problem in inserting an image for a question. When I insert the image, I always have the image being above the question number. I want the question number to ...
2
votes
2answers
39 views

Placing Two Generic Tables Beside Each Other

I have two tables that are virtually identical and look like so: \begin{table}[!ht] \fontsize{8}{8}\selectfont \caption{caption$.} \label{label} \center{ \begin{tabular}{|c|c|c|c|} \hline ...
0
votes
0answers
37 views

Latex wont show any of my references and just adds [?] where I have cited?

I have made a bibliography 'Mybibliography' saved as a .bib file properly in the same folder as my .tex file and I try to run it each time by: PDFLaTeX, BibTeX, PDFLaTeX, PDFLaTeX. But it simply wont ...
1
vote
0answers
35 views

How to automatically vertically center text in Lyx?

I have the following table in Lyx: Here is how it looks in Lyx: I want the text "My words" to be automatically vertically centered. I also want the text for the items that are rotated to be ...
2
votes
0answers
41 views

Adjusting Text Vertical Space between lines in Tikz

I have this flowchart and the preamble is set to add a vertical space between lines and when I compiled this flowchart it follwed the preamble i guess. how can I adjust the vertical spaces of lines ...
2
votes
2answers
40 views

Removing indentation from macro

I've created two macros for my math book project. One is an enumerate environment that numbers problems as "Example 1.1" and so on. The other is a command that writes metadata about each problem to ...
2
votes
1answer
26 views

How can I maintain TeX code layout when pasting into a LyX ERT inset?

When I paste TeX code from a text editor in an ERT inset in a LyX document, the text layout from the text editor is lost, I have to enter the newlines and the tabulations manually in order to regain ...
3
votes
1answer
31 views

How to: height of “|” depends on both sides

I want that a vertical line depends on the height of the signs to its left and to its right: i.e. \documentclass{article} \begin{document} \begin{equation} \left. AAAA \right| BBBB ...
4
votes
2answers
184 views

What is the simplest way to get graphs for each answer choice like in the example below

I am trying to make an exam with multiple questions having graphs as answer choices. I want them to be aligned as shown below. Thank you in advance!
3
votes
1answer
354 views

How to display sine squared more compactly

If I have: \sin ^2(\theta ) My output is: This output just have too much space between the power and the parenthesis. How could I change this?
5
votes
2answers
103 views

How do I get my subsection to not appear bold and with no period at the end?

This is what I have for my codes: \section{MAIN RESULTS} \subsection{Graphical Analysis} I am getting this in the pdf: Instead I want the subsection in Italic non-bold form with no period at the ...
2
votes
1answer
71 views

Reduce space between footnote and page number

I am fairly new to LaTeX so please bear with me. I am trying to reduce the space between the footnote and the page numbering (see screenshots in the attachment). What command will do the trick? ...
2
votes
1answer
26 views

Centering Headings - list of contents - but not chapters

I need to center some sections using normal size fonts in the front sections of a document, but not the chapter headings. So, I need a "Contents" and "List of Tables" and "List of Figures" centered ...
5
votes
1answer
67 views

Lemma without numbering

I want to use the lemma environment without numbering because I only have one lemma. If I use the package \newtheorem{lemma}{Lemma} I get "Lemma 1" in Italics and indented: ...
4
votes
1answer
35 views

Centering a Poem using Verse package

I'm trying to center a poem on my document and I'm using the verse package to include line numbers on the poem. Here is my code: \section{Poem} \poemtitle{Another Day} ...
6
votes
1answer
127 views

How to change the shape of reference numbers in the bibliography

I have the following document. After compiling the document, the reference number in the bibliography appears as [ 1 ]. I would like to know if it would be possible to do the following customizations ...
3
votes
2answers
346 views

When to use $something$ syntax?

I know the difference between \emph{something} and \textit{something} (\emph or \textit). But when to use syntax like: $something$.
3
votes
0answers
28 views

Formatting numbers the Indian way [duplicate]

This is a follow-up question to Handling numbers and calculations. The numbers printed by \num[group-separator={,},group-minimum-digits=4]{\the\numexpr(5000)\relax} will produce comma separated ...
4
votes
2answers
51 views

sqrt sign with sharp or rounded corner

My MWE \documentclass[a4paper,11pt]{article} \usepackage{letltxmacro} %MACRO \LetLtxMacro{\oldsqrt}{\sqrt} % makes all sqrts closed \renewcommand{\sqrt}[1][\ ]{% ...
1
vote
1answer
64 views

framed environment with fixed image in marginpar

I would like to get the exact output below in the LaTeX. But unable to fix it and how to set image in the marginpar for each example environment. My MWE is: \documentclass{book} ...
1
vote
1answer
132 views

Writing formula in LaTeX

How can I write the formula shown below? I am new to LaTeX and I found how to write upper bounds but it is getting really complicated writing it as a whole.
0
votes
1answer
30 views

I have a problem in the output PDF margins

I have a problem in latex template of Circuits, Systems, and Signal Processing journal the output file has not equal margins from left and right, and has a large margin from bottom of the page. I ...
3
votes
4answers
69 views

How to draw straight lines to indicate repeat values in merged table cells?

Can you help me the following working: I'm looking to indicate that the value 2.00 is repetitive vertically through a straight line like in this sketch (the result should be a solid, continuous line, ...
4
votes
1answer
21 views

How to change the format of the “and” bibstring using xpatch?

When using biblatex's textcite command with a two-authored reference I want the "and" between them to be in italics. I managed to get the same for the "et al." \bibstring using the following code ...
1
vote
0answers
33 views

Group functions or something like that

So basically I am writing a thesis in Latex. I want to declare a group of functions exclusive for A3 pages. Can you guys give a tip how to declare such group? class? object? or whatever its called ? ...
0
votes
0answers
35 views

Equivalence Conditions in a Theorem

If I want to write a math paper with a theorem of the form If A and B are real numbers, then the following conditions are equivalent: 1. A = -B; 2. -A = B; 3. A + B = 0. Furthermore, the ...
1
vote
0answers
17 views

Generating an IEEE bibliography with book series in parentheses using BibTeX and IEEEtran

The IEEE citation reference and style manual both list the following two bibliography examples for books: [4] M. Abramowitz and I. A. Stegun, Eds., Handbook of Mathematical Functions (Applied ...
3
votes
1answer
44 views

section head two environment with different size boxes

I have two arguments in section and how to print the second optional argument in the same boxes. How do increase the box width should be upto paperwidth. My MWE is: \documentclass{book} ...
2
votes
1answer
44 views

section head box different font-size and two arguments in a level section

I'm expecting the below section heading is different box and section number is different box. After A level section default 4 icons need to print below (please refer screenshot). ![enter image ...
1
vote
0answers
33 views

Problem with answers using hyperlinks and tbox

I have minor problems with the solutions shown in Hyperlink with answers package I wanted to make a macro which takes solution and exercise as arguments, uses a button like mutual reference, and ...
0
votes
2answers
42 views

I want to get two side by side horizontal lines as shown in the figure

\documentclass[12pt, a4paper]{article} \usepackage{booktabs} \begin{document} I want them on the same row, side by side. \vspace{0.5cm} \begin{tabular}[t]{@{}p{0.45\textwidth}@{}} \toprule ...
1
vote
1answer
50 views

Flowchart Formatting - corrections

I am trying to come up with a flow chart as shown below: I tried as follows: \documentclass[border=10pt]{standalone} \usepackage{tikz} \usetikzlibrary{arrows,positioning,shapes.geometric} ...
1
vote
2answers
80 views

Formatting Question

It has been sometime since I have used LaTeX, and I have a formatting question. Well, it would be better if I just show my code and ask why the format is messing up when I call in cases! What can I do ...
3
votes
2answers
35 views

how to raise superscript inside overline?

I want to N squared inside overline. The superscript in $\overline{N^2}$ is too low. How to raise superscript higher? Thanks
3
votes
1answer
34 views

reduce the white space before and after new

How do I reduce the white space before and after the \begin{mq} … \end{mq} block in the following code? Ideally, I would like the white space between the environment and the preceding and succeeding ...
1
vote
1answer
25 views

Copyright notice overlapping with text in Lyx [duplicate]

I have a copyright notice on my IEEE Journal that is overlapping with my text while using Lyx and I am not sure why it is happening or what I can do to fix the problem. I have tried looking up ways ...
2
votes
1answer
71 views

Removing red boxes around references

I have seen some solutions on here to problems regarding removing red boxes from hyperlinks, but I have an issue with red boxes around references. Whenever I use the commands \eqref{} or \footnote{} ...
3
votes
3answers
135 views

Enclose Code in Latex with single user-defined command

I am using the following to enclose my code in a box and I like the formatting but I have the problem that everytime I have to write a lot of stuff. Before the begin{document} I have defined: ...