Skip to main content

Questions tagged [examples]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
17 views

Custom numbering for `example` and `solution` environments in Beamer that resets with each example

I'm currently using the Beamer document class to create presentations and have defined two custom environments, example and solution, for my slides. However, the default numbering scheme is not what I ...
Wu Guiping's user avatar
0 votes
1 answer
38 views

how to minimize the space between two side-by-side examples?

For the following two examples, I would like to first reduce spaces between a/b and examples, and then make the two examples occur in one line (try to save more space for a conference abstract). Could ...
Kelvin Hu's user avatar
1 vote
1 answer
27 views

How to get right side-by-side linguistic examples?

I am trying to use package expex to create two linguistics examples side by side. For the B example, I don't know how to make 're' appear in the first line, which keeps appearing in the third line. ...
Kelvin Hu's user avatar
0 votes
0 answers
49 views

How can I remove the space between the lines of linguistic examples?

When a linguistic example is very long, the defined format of such long examples in the expex package looks like this. How can I make the first part and second part of this long example align? \ex[...
Kelvin Hu's user avatar
0 votes
1 answer
54 views

How to use Devanagari in Latex-Example-typesetting packages

I want to create a LaTeX file to show how the LaTeX-code works. So I want to show the LaTeX-code as well as the output after running the code. In example of the code I want to use some Devanagari text....
Sushant's user avatar
  • 117
1 vote
1 answer
235 views

How to change the block color without theme?

How to change the block color without theme? I want to change examplebox and alert color. title style: fg: white bg: example block title color body style: fg: black bg: example block title color!...
Koki MIZOGUCHI's user avatar
2 votes
1 answer
96 views

How can I modify the xlist environment of gb4e to allow for alphabetical numbering beyond "z"?

I am using the gb4e package to typeset my (rather numerous) examples. I am trying to modify the xlist (or xlista) environment of said package to allow for alphabetically numbered sub-examples beyond z,...
smnf's user avatar
  • 23
1 vote
1 answer
89 views

Repeat example in LaTeX, but with double numbering (incremental and old)

I am using gb4e to write my thesis and I need to repeat examples by presenting them using both the new number (example 4 follows example 3) and the original number they were presented first with. For ...
Paola Marongiu's user avatar
0 votes
2 answers
43 views

How can I align bullet pointed examples within one example in the amsthm environment?

I am using amsthm to label examples. Rather than have each subsequent example separately, I would like to bullet point multiple examples within one labelled "example." So for instance, I ...
Christopher Gourlay's user avatar
8 votes
0 answers
340 views

Showcase of LuaLaTeX capabilities/packages

The Lua programming capabilities in LuaLaTeX greatly expand what is reasonably possible within .tex files. I stumble across examples of cool LuaLaTeX-only code and packages here and there on the net, ...
tecosaur's user avatar
  • 1,053
0 votes
1 answer
129 views

Reprogramming postnote to refer to example numbers and ranges (Biblatex)

When using \cite or \textcite, I like to give, as part of the postnote-dedicated optional argument, additionally to the page range, some example number(s), for example ex. 38. I am seeking to program ...
Vincent Krebs's user avatar
2 votes
2 answers
81 views

The caption package interferes with the showexpl package

When the caption package is loaded, it messes up the cross-referencing of listings typeset using the showexpl package. The \ref command prints the number of the section in which the LTXexample is ...
Alex's user avatar
  • 23
0 votes
1 answer
88 views

Simple way to have same height position for all titles in beamer

This is a general question in order to know if there is a simple way to have all the \exampleblock titles being on the same height in a beamer presentation ? For instance, for 2 different templates, I ...
Waxler's user avatar
  • 808
0 votes
2 answers
49 views

How can I fix the spacing between text and numbering in newntheorema

I'm using a newtheorem to create the numbering of an example, but the spacing has been very different from one number to another. I've already tried using \hspace after Ex. (and before numbering). I'...
Leonardo Gonçalves's user avatar
1 vote
1 answer
44 views

How can I remove punctuation/period after lettered subexamples in g4be/xlist

I have to change sub examples in xlist environments (or rather g4be's \ea \ea \ex \ex \ex \z \z ) from being letter plus period, e.g. a. to simple parentheses (a) not followed by a period/full stop. I ...
Bengine's user avatar
  • 13
0 votes
1 answer
192 views

Labelling examples/remarks based on Sections

I want to automatically label examples (as well as remarks, definitions, theorems, etc) based on section number. For example, if I have defined a \section, \subsection or even a \subsubsection ...
sam wolfe's user avatar
  • 257
1 vote
0 answers
32 views

Issues at having definitions, examples, etc. numbered in beamer [closed]

everyone! I am trying to have definitions, theorems, examples and exercises properly numbered. I've even tried to have the "examples" that span more than one slide numbered by using \...
Alcibiades Abreu's user avatar
1 vote
2 answers
260 views

Linguistic example with alternative gloss *and* translation

I'm writing a linguistics paper and I need to show alternative glosses and translations for a single example. I found the example here (Align glosses in more than one language with gb4e) which shows ...
Bob's user avatar
  • 31
12 votes
1 answer
1k views

How to typeset the Glagolitic script in LaTeX? (ⰳⰾⰰⰳⱁⰾⰹⱌⰰ, глаголица)

I am looking for an example of a LaTeX document written in the Glagolitic script. (I am aware of the croatian package, but was not able to use it.)
Anton Petrunin's user avatar
4 votes
0 answers
285 views

Cross-referencing: more sublevels, and presets

I'm typing a lot of linguistic examples and I would like label formatting to gain flexibility, i.e. setting up presets would be great. That is, I'd like to be able to have ready-to-use setups ...
Vincent Krebs's user avatar
0 votes
2 answers
672 views

How do I create a new environment like proof in amsthm package which reads as 'solution' instead of 'proof'?

Using the \newtheorem command, I know how to create similar type of environments like 'Examples', 'Remarks', 'Lemma' etc. in class notes. For Theorems, we use \begin{proof} ......... \end{proof} to ...
Dr. Sundar's user avatar
4 votes
1 answer
106 views

Using the word "write" as a label makes compilation crash

Took me all night (literally) to figure out. Compilation was failing one time out of two, with the following original error (line 12) : "Bad space factor (0)". That was crazy because ...
Vincent Krebs's user avatar
3 votes
0 answers
326 views

TeX as a programming language: examples and design patterns

I'm looking for simple examples of using TeX as a programming language, not LaTeX, and ideally these examples only use the primitive TeX commands. Why? Because the members of a local computer club ...
Randall Fairman's user avatar
2 votes
1 answer
59 views

Color an Example Image but Leave the Default Drab

This post asks for an extension of Werner's answer given in Color an example-image. Consider the following code: \documentclass{article} \usepackage{xcolor,graphicx} \usepackage{caption} % % % % % % %...
DDS's user avatar
  • 9,500
3 votes
1 answer
471 views

Cryptographic protocol, execution example

Is there an easy (or even hard) way to draw an execution example of a cryptographic protocol? I'm trying to write about BB84 in my master's thesis, i'm looking for something like this: or this: I ...
VitoShade's user avatar
0 votes
0 answers
116 views

How can I make a fullwidth, breakable, two column environment that adjusts to margins in a two sided document. Example shown in figure below

I'm writing a textbook, the format is twosided, different length in each margin. I want to include, however, worked out examples that ocuppy the full length of the page and in two column format as ...
Oscar Bonfiglio L's user avatar
3 votes
1 answer
1k views

Showcase of modern, beautiful and appealing styles for short documents

I'm helping someone to typeset in LaTeX a short non-technical document (at most 20 pages). This document should be nice to read, aesthetic, with nice pictures... LaTeX is mostly used for technical ...
tobiasBora's user avatar
  • 8,854
2 votes
1 answer
209 views

Enumerate examples

I want to be able to keep track of numbered examples throughout chapters/sections, something like \section{<name>} or maybe an environment would work better. So I could have something like or ...
grepgrok's user avatar
0 votes
1 answer
51 views

Constructing a template for mathematical examples in an article written in Bangla

I'm currently trying to write an Bangla article containing many examples. For better understanding, here is an example of task in the figure. You will notice here: An increment of Bangla numerals. ...
mmr's user avatar
  • 2,249
0 votes
1 answer
352 views

Vertical line next to example environment changes indentation of itemize and enumerate lists

I am attempting to use this example environmment in my book. I really like how it creates a vertical line next to examples. I would like to customize the appearance, but that is a separate question. ...
EthanAlvaree's user avatar
  • 1,411
2 votes
1 answer
1k views

Custom example environment with colorbox and vertical line for `kaobook` document class

I am making a custom example environment for the kaobook class and would like to modify the second example environment from this question: \usepackage{chngcntr} \usepackage[tikz]{mdframed} \...
EthanAlvaree's user avatar
  • 1,411
1 vote
1 answer
182 views

Bin packing problem diagram // Latex

I need a diagram/graph like this on a latex document. I don't know neither the library to make this nor a source/example code. Any info will help me! Thaks.
jpnant's user avatar
  • 13
1 vote
0 answers
156 views

How do you create a shaded white box with an example theorem heading?

I want to create the example below but I do not know how to do so. It is an Example Theorem around a shaded white frame box. I am open to new suggestions. Thank you for your help!
Ms Thanh's user avatar
0 votes
0 answers
114 views

Defining a new example environment and giving reference it

How to give cross-reference to all words, Example 1, as follows? I defined a new environment as follows: \newtheorem{exmp}{Example} When I give a \label{Example} to the example and write \ref{Example}...
1_student's user avatar
  • 273
0 votes
0 answers
56 views

How to cross-reference to Example

In a journal article manuscript, suppose that we have an example: Question 1: What are the alternatives for titling and numbering the examples instead of \textbf{Example 1.} Question 2: How to ...
Eric_Jansen's user avatar
0 votes
1 answer
232 views

Can anyone produce a minimal working example of listings in Beamer?

I'm trying out the solution in : Lstlisting Python but in Beamer. And no matter what I write, it throws me like a thousand errors: I thoroughly checked. There is no missing } My code is literally (...
Olórin's user avatar
  • 323
0 votes
2 answers
166 views

Highlight environment by setting a violet background color that works on xelatex

Please, what I need is an example environment that has a violet [rgb(238, 130, 238) for example] background, the font color black and this has to work on xelatex (I need this compiler because I'm ...
amuniz1's user avatar
  • 129
3 votes
0 answers
2k views

A well-documented KOMA-script template/example for 2021?

Does anybody know of well-documented and current (as of 2020/2021) KOMA-script templates or examples? (I am talking mainly about the article/report/book flavors scrartcl, scrreprt, scrbook here: ...
Ingmar's user avatar
  • 6,700
1 vote
0 answers
302 views

What is the best approach to insert a LaTeX example source with preamble?

Introduction I was preparing some examples of how to use LaTeX and then I found out the package showexpl (showexpl) which worked much better than others such as verbatim, moreverb and fancyvrb-ex. ...
FHZ's user avatar
  • 3,949
1 vote
0 answers
30 views

Capacity Error (with isolated problematic excerpt from code/minimal non-working example) [duplicate]

I am working on an article in XeLaTeX and I am getting this error: capacity exceeded main memory size=5000000 By moving around \end{document} and by cutting and pasting various parts of the document, ...
NLing's user avatar
  • 383
0 votes
1 answer
59 views

Issue while creating the list of Examples

I have created the list of examples similar to the list of figures using the package "float" and the list of examples section is appearing correctly.But, I am facing 2 issues in the example ...
PARTH KHAMAR's user avatar
0 votes
1 answer
99 views

Is there a font similar to this document? [closed]

Here is the document: What I am interested in is the fonts P.S: even if there is no document class that does all of that, I will be interested in sources indicating how to do each of them ...
Antarctica's user avatar
2 votes
1 answer
136 views

Use custom font for numbers in linguex examples

I have a custom font specifically for numbered lists -- it renders the numbers in an enumeration in a nicer way than the standard main font. Once I've loaded the font into a new font family which I ...
Venkat's user avatar
  • 179
0 votes
1 answer
156 views

How do I number my images as examples?

I am trying to insert Syntax trees into a paper I am writing, but I am not sure how to number them. My trees are .png files, and I am inserting them into the document using \begin{figure} however, ...
alpablo20's user avatar
  • 113
4 votes
1 answer
146 views

Devanagari counters in package expex subexamples

I need Devanagari counters in package expex. %!TeX TS-Program=xelatex \documentclass{article} \usepackage{polyglossia} \setdefaultlanguage{marathi} \setmainfont[Script=Devanagari,Mapping=...
Niranjan's user avatar
  • 3,415
4 votes
1 answer
307 views

Linguistics Example Alignment

I am currently working with the gb4e package for linguistics in LaTeX, and I am wondering if there is an easy way to align parts across examples. For instance, in the following example, I want to left ...
3thanguy7's user avatar
0 votes
1 answer
189 views

Help: How to create a red line margin at example environment

I'm working on an example document for a book that I bought for my girlfriend. The book does not have any examples inside and I want to make a note such that she can see how the math works. Down ...
Joey Adams's user avatar
2 votes
2 answers
351 views

Boxing the contents of all theorems but not the theorem heading

I created a theorem environment for examples and I want to have them boxed underneath the heading. \documentclass{book} \usepackage{amsmath} \usepackage{amsthm} \newtheoremstyle{break} ...
E2R0NS's user avatar
  • 299
0 votes
2 answers
855 views

How can I change the color of a command in Latex?

For example, I want to type \this as a regular text,but I want it to be blue. I tried \textcolor{red}{\this} but it doesn't work.To specify,I want the backslash included and colored.
Harun Duranović's user avatar
2 votes
1 answer
188 views

LuaTeX node library examples: like turn raggedright lines to raggedleft, and more

In addition to posting the right answer for the specific example in my question, please feel free to leave short snippets of code that display capabilities of node library Am new to LuaTeX node ...
codepoet's user avatar
  • 1,316

1
2 3 4 5