Karl Hagen
  • Member for 8 years, 2 months
  • Last seen more than a week ago
  • California
Making Environments Using xtemplate
Accepted answer
5 votes

As mentioned in the comments, you don't directly define either commands or environments with xtemplate. You probably want to use xparse for that. Although I suppose you logically could define a ...

View answer
How can I automatically add index entries every time I reference a glossary entry?
4 votes

Given that this question has been open for several months, perhaps you've already solved your problem, but I have written some macros to solve a virtually identical problem, so I thought I'd share ...

View answer
Pagenumbers disappear when using a scrlayer-ed approach
3 votes

The page number disappears because that's part of the pagestyle that has been replaced. To get it back, you just need to add another layer that contains the page number, along with anything else you ...

View answer
Is there any way to hide a portion of a line drawn by \columnseprule in multicol?
3 votes

Changing the size of multicol's columns individually isn't possible without a major rewrite of its internal column balancing routines. Manually shrinking a column separator is possible with the very ...

View answer
How to test a \newif conditional in expl3
Accepted answer
3 votes

After some experimentation, this appears to do the trick. % !TeX program = xelatex \documentclass{article} \usepackage{xparse} \usepackage{bidi} \makeatletter \ExplSyntaxOn \prg_new_conditional:Nnn ...

View answer
Inconsistent spacing after multicols inside figure
Accepted answer
2 votes

You're seeing this behavior because of the way that you're composing the savebox on the fly and inserting it as a bottom figure. You insert two or more multicols environments into bottom figures ...

View answer
Horizontal Rules Before and After Multicols
Accepted answer
2 votes

You could use the custom-line option of multicolrule to draw the horizontal rules along with the vertical one. This requires using tikz: \documentclass[12pt]{article} \usepackage[vmargin=0.5in, ...

View answer
How do I ask LaTex to exactly fill up a page that has columns?
Accepted answer
2 votes

The reason it won't fill to the end of the page is that multicol calculates the necessary height without the extra fill when balancing the columns and outputs those columns to that height, so there's ...

View answer
problem with makenonemptybox and multicolumn
Accepted answer
2 votes

You forgot to account for the width of the column separation (\columnsep). You also need to increase the default separation a bit. The following fixes your immediate problem. Note, however, that if ...

View answer
Using exam question counter as an argument
Accepted answer
2 votes

You're seeing this problem, as you may already understand, because you need to expand the values of \thequestion and thepartno at the point of use. As you've written it, only the final value is used. ...

View answer
How can I detect when I'm at the top of column?
2 votes

There's probably a better way to do this, but @Werner's link gave me this idea. It relies on the colaction feature of multicol: \documentclass{article} \usepackage[colaction]{multicol} \usepackage{...

View answer
Avoid added spacing after premature pagebreak
Accepted answer
1 votes

The main switch you need to make when using minipages is to convert from multicols* to multicols. Of course putting a \section at the top of the minipage will also lose the spacing above the section ...

View answer
How to have line numbering inside of page frame?
Accepted answer
1 votes

You need to do two things: Adjust the margins of the numbered text. There are a number of ways to do this, but an easy one is the addmargin environment in KOMA-Script. (See the answers to this ...

View answer
How to create a Multicol within a Page-Frame spanning multiple pages
Accepted answer
1 votes

Update #2 One way to size the frame to the final text is to save the y-position at the end of the document, and then use that to calculate the `\layerheight' on the final page. This solution uses zref ...

View answer
Tikz-fill columnsep with horizontal lines
Accepted answer
1 votes

Is this along the lines of what you want? Note that the coordinate system within multicolrule's custom line is set so that y=0 is at the bottom of the column. Your negative expression -\fila*16pt ...

View answer
Columnwise line numbering in a two column environment (with multicol)
1 votes

Columnwise numbering in lineno is incompatible with multicol. The problem is that lineno attaches its numbers to each line as they are generated, and then multicol takes all those lines and puts them ...

View answer
Latex three column layout: merging two of them at the begining
Accepted answer
1 votes

If flowfram doesn't suit your needs, there isn't a simple way to do it, but it can be done. This solution patches multicol to shrink the height of the second column in the environment by the amount ...

View answer
Unexpected indent in multicolumn of a tabular table
Accepted answer
1 votes

The m column type isn't factoring in the inter-column separation of the two columns, so your specified \multicolumn width is shorter than the actual width of the table. For reasons that aren't ...

View answer
What's the expl3 way to access TeX insertions?
Accepted answer
1 votes

The package referenced by Yiannis employed the trick of using \cs_new... to create aliases for the tex sequences \count\footins, etc. and giving them conventional expl3 variable names. For example: \...

View answer
How to extend the columnseprule on the final page of a multicol environment?
1 votes

The new package multicolrule (version 1.1) can handle this problem without the need for eso-pic. While Werner's solution was perfectly serviceable for the problem as set out in the MWE, in production ...

View answer
Difficulty saving formatting to a sequence to be called later in my code
1 votes

I know this is a ridiculously old thread to resurrect, and you've probably moved on or solved the problem another way, but I've been working through expansion in expl3 myself and found this to be an ...

View answer
Line numering with multicolumn mode
1 votes

Is this what you want? This solution assumes you only want line numbers in the left column. If you want them in all columns, delete the docolaction macro that wraps the \underline macro. \...

View answer
How do I expand \pgfkeys properly?
Accepted answer
1 votes

The answer to this question gave me what I needed to solve this problem. Instead of trying to load the values directly from the key, I store them in intermediate macros. The solution below extends the ...

View answer
Indent the first paragraph of KOMA-Script's addmargin environment
Accepted answer
1 votes

This solution patches addmargin to check for the redefinition that indentfirst makes. If present, it sets \itemindent to \parindent. Otherwise, it observes the default behavior. \documentclass{...

View answer
Create a "Choose between" in exam class, follow up question
1 votes

From my understanding of the exam class, you can't do exactly what you want with question parts, because the grading table lists questions and not their component parts. However if you restructure ...

View answer
Box / Object moves in research article template depending on introduction length. Why?
0 votes

The \afterpage command is there because the significance statement is a float, and this ensures that it still comes at the bottom of the column even if there are other floats on the first page. You'...

View answer