{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
2answers
257 views

Is there a way to create elements that looks like tags?

How can I style some element that looks like stackoverflow tags?
1
vote
1answer
92 views

Format painter feature in LaTeX

I wish to know if there is any short cut in LaTeX to suffix and prefix $ symbol for math text. Say I have to write many times some variables such as x, y, and z. I wish to type them normally, and at ...
2
votes
1answer
94 views

Multiple Altconditions within LaTeX Document

The question refers to this solution and trying to modify the code to support multiple altconditions in my document. The problem is to allow two sets of alternative conditions within the same ...
2
votes
1answer
103 views

pgfplots significant figures

I'm trying to work out how to change the number of sig figs in the axis labels. I.e., I want the graph to display 0.0, 1.0, etc. Any ideas? \documentclass{memoir} \usepackage{pgfplots} ...
6
votes
2answers
191 views

Fractured line drawing in LaTeX

whenever i try and draw a slanted vector or a line in the picture environment, I get this broken line output. Does anyone know how to fix this?
5
votes
1answer
155 views

How can I automatically prepend a prompt (e.g. $) to each line of a listing?

I have something that looks as follows: \documentclass{article} \usepackage{listings} \lstnewenvironment{shellsession}[1][] {\lstset{language=bash, basicstyle=\small\ttfamily, numbers=none, ...
6
votes
2answers
103 views

Enhanced fill-in-the-blank document

I am about to improve my lecture slides from last semester. Specifically, I would like to add a fill-in-the-blank option. I found this code suggestion (from here): \documentclass{article} ...
4
votes
2answers
129 views

Remove table borders

I am trying to code a table in latex that looks like this: and my attempt is this one: \documentclass{article} \usepackage{array} \usepackage{booktabs} \begin{document} \begin{table}[h] ...
1
vote
0answers
58 views

Formatting maple for latex

i am doing some linear programming in maple, and sometimes the matrixes are quite large. I know that maple have a /latex(expression) function, but when i have a vector, that have fractions in it, out ...
2
votes
1answer
77 views

Get unicolor background navigation bar in Beamer's singapore theme

I would like to get the background color of the navigation bar in a single color rather than the default color gradient. Is there any way to do this?
3
votes
2answers
69 views

Format of text within Tabular environment

I want to make the words "words words words" be directly below n^k. What I have tried so far has not worked. That is, \newline, \\, and \underset{} cannot accomplish what I desire. Example Code ...
3
votes
2answers
142 views

width of \parbox issue

I am using a template for a CV in LaTeX and I am facing certian difficulties in getting things aligned properly. The code I am referring to is \newcommand{\NewEntry}[3]{% Define a command for each ...
7
votes
1answer
67 views

How do I change the size of a matrix within a matrix?

I am trying to make the inner matrix the same size as the 0, i.e. the large matrix should have two equally sized components, a 0 and a small matrix (1,0). Here is my MWE ...
0
votes
1answer
155 views

Problem with crosswords

While making a crosswords in LaTeX, I found out I am unable to do two things: A part of it must be blue. Two letters must be visible in the unsolved version. Can anybody tell me how to do these ...
0
votes
1answer
28 views

TOC Spacing between number and header [duplicate]

How do I increase the spacing between the subsection number and header name in the table of contents. I am using www.sharelatex.com. When I have a large number of subsections the section numbers and ...
3
votes
3answers
80 views

Writing manual summation of two numbers

How would you write a manual summation of numbers in TeX? That is, something like this(not necessarily identical):               ...
2
votes
2answers
94 views

Same command is used more than one number of time but i am getting only last output

I am defined \editor{strong text} and \reviewer{strong text} command is used more than one number of time. But, I am getting only last \editor{Some Text} command output. My class file defined this ...
2
votes
1answer
46 views

Using default values in arguments in marginsize command

I am using the resume document class to write my resume. Since I want to make my resume fit in one page, I would like to decrease the spacing at the top of the document but keep the bottom, right ...
1
vote
1answer
43 views

Change some basic details about document type resume

I am writing my resume and using template "9b" from this website. However, there are a couple of items that I would like to modify. Here is the .tex file and corresponding screen-shot after ...
5
votes
3answers
84 views

how to change the font of the number after theorem

I want to change the font of the number to \itshape, for example, I want to get Theorem {\itshape 1.1}. Is there any way to do it in the theorem environment
7
votes
3answers
199 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
54 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} ...
1
vote
0answers
49 views

Adding references to cv [duplicate]

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
38 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
50 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
116 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
86 views

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

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
202 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 ...
3
votes
2answers
172 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[ ...
4
votes
1answer
116 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 | ...
4
votes
2answers
135 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? Here is an MWE. \documentclass{article} \usepackage{gb4e} \begin{document} \begin{exe} \ex[*]{\gll Me ...
2
votes
2answers
50 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 ...
3
votes
2answers
51 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 ...
1
vote
0answers
97 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
120 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
50 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
47 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
36 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
221 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
431 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
120 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
152 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
46 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
83 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
57 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
140 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
351 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
30 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
76 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
76 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} ...