Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringlengths
1
6
title
stringlengths
12
149
text
stringlengths
22
31.1k
1
Automatically define macros in LyX documents
I'm using LyX all the time and over the last 2 years I've accumulated some very handy macros for my lecture notes. As it is today, every time I start a new document, I copy and paste the macros from one of my other documents. Is it possible, somehow, to automatically load macros for all files? (I asked this on SO a whi...
100
Tool for cleaning LaTeX code
Is there something like `indent` for LaTeX? I have a collaborator that is using Scientific Workplace and the code it produces is totally messed up; I know I shouldn't expect miracles, but any machine support would be useful. EDIT: This question is quite undefined without my comment to KeithB's answer; the idea is to sa...
100002
Create an environment like the `checkboxes` in exam.cls
I am having trouble on how will i create something like the `checkboxes`or `oneparcheckboxes` environment in `exam.cls`. The only difference is that since the `checkboxes` gives circle, i'd like to create environment which give squarebox for multiple choice. when i type this in `.tex` file: \documentclass...
100004
Problem with Table of Contents chapter line breaking
I am working with the `book` document class. Concerning the table of contents, is there any way to break the chapter title as you like? For example, instead of e.g. > 1. How to effectively feed swiss brown cows so as to pro- > duce more milk > to have > 1. How to effectively feed swiss brown cows so as to > p...
100006
Change part numbering to A, B, C, ... instead of I, II, III,
How can I configure the `\part` command to use A, B, C, ... to label parts, instead of I, II, III, ... Or is this bad practice?
100008
How can I move an equation without affecting the label?
I am having an issue with the automatic LaTeX equation and label formatting on one of my longer equations (see results below). **Minimum Working Example** \documentclass[11pt]{article} \usepackage{amsmath} \usepackage{amssymb} \usepackage{graphicx} \usepackage{epstopdf} \usepackage{xfr...
10001
Can one draw a hyperbola with arguments in TikZ?
I'm using TikZ to draw some conic-section graphs. There is a built-in ellipse command (semiaxes as two arguments) and a rudimentary parabola command (with a vertical axis, but one can rotate), but to draw a hyperbola I had to fake it with a spline and externally compute the control points. I don't want to plot a sequen...
100010
Automatically prevent line-break at hyphen of specific words (e.g. "dual-self")
Usually questions about hyphenation and line-breaks are concerned about how to allow hyphenation when a word already contains a hyphen. That's not what I'm after: I would like to prevent the word "dual-self" to be broken across lines. I know that I can to that manually with `dual\=/self`, but is there a way to achieve ...
100014
Center subfigure using floatrow
I'm working with `caption` and `subcaption` to style my (sub)figure captions and especially with floatrow to center my figures. However, this does not work for subfigures, as the following nMWE (nearly minimal) example illustrates: \documentclass[a4paper,12pt]{scrartcl} \usepackage{floatrow} \usep...
100017
Missing space before "and" in author list with two \thanks
I am trying to typeset the authors' names in a paper so that they appear as ## Joe Bloggs* and John Smith** (i.e. typeset with a joining "and" and normal spacing between words). I also need to put a `\thanks` for each author. The code I am using is \author{ Joe Bloggs\thanks{blah}\ and\ John Smith\t...
100018
verbatim within... a package delivers a string from a file and that string needs to be printed without interpretation
The csvtools package warns in its documentation from interpretable inputs but offers no solution as far as I can see. This Code generates a table \documentclass{article} \usepackage{csvtools} \begin{document} \newcommand{\DATARow}[4]{#1 & #2 & #3 & #4\\[.5ex]} \setcsvseparat...
100019
listings package : highlight word composed by an alphabetic and a numeric part
I would like to highlight several keywords with an alphabetic and a numeric part with different color. My problem is the number of keywords can become huge from r0 to r191 for example. And I have several keywords. Is there a way to escape to write all the possible keywords ? Is there a way to define left delimiter just...
100022
Plotting Normal distribution in pgfplots
I'm trying to reproduce the following diagram in `TikZ` and `pgfplots`. ![enter image description here](http://i.stack.imgur.com/aoYEU.png) My MWE with regenerated graph is below: \documentclass{standalone} \usepackage{pgfplots} \begin{document} \pgfmathdeclarefunction{gauss}{2}{% ...
100024
Do you use TeX for writing your thesis or only for its composition?
I would like to submit my university thesis composited in TeX. But I am not sure what is the best practise in the writing stage so I would like to ask you - do you write your thesis in a TeX editor or do you use some other text editor/program (MS Word, Libre Office Writer etc.) and after you finish, you transform your ...
10003
A symbol used in civil engineering
How to make a symbol like this? Due to the reputation limit, I can't upload an image. So I decribe the symbol by word, I hope you can understand it. My symbol is: > a phi with an underscore. phi is `\niphi`.
100032
Subfigure Labeling Latex
I have a quick question about labeling subfigures: I am putting in figures side-by-side using the `subfigure` package, but I don't want the labelling to be included in the caption (i.e (a), (b), (c), etc). How do I go about doing this? \begin{figure}[h!] \hfill \subfigure[caption 1] ...
100038
Resizing image and losing quality
I want to create a pdf document from images of different size and I fit each image to the text dimensions to include them in the document, with \includegraphics[width=\textwidth, height=\textheight, keepaspectratio]{file.jpg} The problem is that these images are very enormous: 160MB in total; and thi...
100039
Forcing macro expansion with keyval
While trying to provide an answer to this question, I've run into a stumbling block that I can't seem to get over. The `listings` package (like many others) uses `keyval` to handle configuration. What should be done if part of that configuration is a macro that must be expanded prior? All (admittedly semirandom) config...
100040
How to omit non-integer x-axis ticks in pgfplots?
The following figure has annoying x ticks at 0.5, 1.5 and 2.5. Non-integer values have no interpretation for my purpose. ![Figure with ugly x-axis ticks](http://i.stack.imgur.com/PQLXe.png) > **Question** : How can I get pgfplots to exclude non-integer x-axis ticks? I realise I could do this via `xtick={0,...,3}`, but ...
100042
Remove the automatic generation of number?
I looked for my past thread which can be found here: Create a two column static small box the solution i accepted was the `truefalse` environment. My question is, how will i remove the automatic numbering of the environment?
100049
Placing text at random positions on the screen in beamer
I am creating a presentation and for the Q&A session slide, I want to show question marks (?) in various colors and sizes in random locations on the screen. Is this possible in `beamer`?
100050
Horizontal margincaption alignment using floatrow
I want to switch from `sidecap` to `floatrow` in putting figure captions in the margin. When using `sidecap`the text is perfectly positoned within the margin. When i use floatrow there is a slight shift. What am i doing wrong? Note: Adding `marginparsep=50pt`to the geometry package exacerbates this problem. Seems like ...
100051
4 set venn diagram in TikZ
Is it possible to make a 4-set venn diagram using the tikz packages, like the following one? I know it must be, but the only information I can find on the subject uses R as the language. ![enter image description here](http://i.stack.imgur.com/z4pKb.jpg) So, an update. I am now wondering how to best fill just the isola...
100054
Creating an enumerate-description style environment
I've been trying to create a list environment to produce something that does the following: 1. It has a counter (like the enumerate environment). 2. The first line of each item is an overview of the item (probably in boldface). 3. Some items have nothing other than the first line, while others have more descripti...
100059
tipa with fontspec redux: tilde above characters
I'm trying to use the `tipa` package with `fontspec`, but they don't play nice together. I've read previous questions trying to solve the issues that come up (like this one), and that's the solution I've been using so far. However, I've bumped into a problem that I can't really understand. Below I include a (unrealisti...
100060
The TeXbook: Spiral or hard-cover binding?
I would like to purchase Donald Knuth's TeXbook, and I have noticed that there are two versions available. One is a spiral-bound edition, usually sold by itself. The other is a hard-cover edition, available both by itself or as part of a boxed set of five volumes (Knuth's Computers and Typesetting series). The price di...
100063
Double subscript problem
The code \DeclareMathOperator*{\FAggregate}{F} \begin{equation} q_k'(e) = \FAggregate\limits_{a \in R}_a (q_k(S(a))) \end{equation} causes a problem with an additional `_a`. What I want is the `a` to show in the subscript position as shown in the following picture: ![desired output](...
100069
In LaTeX, how to have a TextField with limited number of characters
I am using LaTeX to make a fillable PDF file. I use the `\TextField` command in the `hyperref` package to get the fillable field in the PDF file. In some places, I want to have a field which has a limited number of characters for input, e.g. the phone number or card number. How could I realize this effect? I looked up ...
100075
Removing a page numeration from Table of Contents
In LyX, how can I make the pages numbers start from the second page? (i.e., making the first page, which is the table of contents in my case, not having a page number on it)
100079
\overprint inside \itemize problem -- shaky frames
I'm having troubles with a presentation. I want to create something like this \documentclass{beamer} \usepackage{ulem} % To strikeout text \begin{document} \begin{frame} \begin{itemize} \onslide<1->{ \item item 1 \item item 2 \item item 3} \begin{overprint} \on...
100081
Vertically center block of text including chapter for dedication page
I have a dedication page in my book (using `\documentclass[a4paper,11pt,openany,oneside]{book}`. It is in a separate chapter and contains two small paragraphs. The chapter is on a separate page. At the moment, as for all my chapters, the dedication paragraph is sitting close to the top of the page. As in many books, I'...
100082
Is Texinfo used much except for the GNU manuals?
It looks kind of nice, but I'm not certain I should invest the time or just put LyX and org-mode away and finally learn LaTeX properly.
100084
How to edit the LaTeX path in LyX on Windows (x64)
I was using MiKTeX 2.9 (x64) on my Win 7 machine for some time with TeXnicCenter. Now I tried to install LyX on the same PC. The problem I get is Lyx does find neither `latex.exe` nor sees all the other files in `\bin` folder of MiKTeX. I read Lyx had problem with x64 bit MiKTeX, so I removed every "MiKTeX 2.9 x64" in ...
100085
How long does it take to format a book in LaTeX?
I am new to this website and I hope this is not considered off topic but how long does it take to format a book in LaTeX? I understand this is a subjective question but maybe the "specs" of the book can make it less subjective. I do not have a lot of experience with LaTeX other than formatting posts over at math.se. Cu...
100088
R-code linebreaks AND code highlighting in knitr
I used the great answer from @Sharpie on 19 Jan 2012 Getting Sweave code chunks to stay inside page margins? to get linebreaks in the R-code, but how can there be code highlighting (colors) too? \documentclass[a4paper]{article} \usepackage{listings} \usepackage{inconsolata} <<echo=FA...
10009
Subtitle for a section
I'm using XeLaTeX to take notes in class, and I am using a new section for each lecture. Since the lectures have different teachers, I'd like a small italic subtitle for each `\section`. I'm using the article class. How would I go about doing that?
100090
Why do i have error by removing this `>{\stepcounter{tfno}\thetfno.}`
i followed the instructions by this link: Remove the automatic generation of number? and happily satisfied when it really prevented the automatic numbering of the text. But why is when i changed the document class to `\documentclass{exam}` it suddenly provides me eror. i have this code here: \documentclas...
100092
How to include a Chinese paper in reference via bibtex?
When including the following entry in my `ref.bib` @article{chen2012, title={基于电无级变速器的内燃机最优控制策略及整车能量管理}, author={陈骁 and 黄声华 and 万山明 and 庞珽}, journal={电工技术学报}, volume={27}, number={2}, pages={133--138}, year={2012} } it shows up as ![enter image descriptio...
100095
How to avoid widow lines in Table of contents (TOC)
I have a Table of Contents page (the last page, page 3) which just has one line on it. Is there a way of manually editing it so, say, Chapter 3 starts on page 2, as opposed to straddling pages 1 and 2? This would presumably push the rest of everything down and lead to a more "balanced" page 3. Here are some relevant [I...
100097
TikZ node positioning in Beamer ignores x coordinate
I have the following `frame` in `beamer`: \begin{frame}{Language} \begin{block}{} \begin{align*} \onslide<1->{ &\text{Types} & T &::= B | T \to T \\ } \onslide<2->{ &\text{Terms} & E &::= A | E\ E | \ldots | \tikz[baseline]{ ...
10010
Is there a "selective" input command in LaTeX?
I'm likely going to have to write a document that includes some portions of source code, which I'd rather keep in separate source files. I know that I can include the contents of those files in my document using `\input{example.cpp}`, and use various environments to pretty-print the code, but the source files will cert...
100108
Set up a system to alternate between genders per paragraph
In RPG writing it has become traditional to swap _he_ and _she_ on a per paragraph basis. Something like "He can use the smite evil ability one a day at first level. (Blah blah blah, paragraph break) when the paladin gets to 4th level she can use the ability three times a day." Now, this isn't that hard to write, but o...
100109
Problem with sizing side-by-side minipages
I've been writing up my resume in LaTeX (for the flashiness and also to get better with LaTeX), and I've been having some trouble with one of the macros I wrote, called `\nrccolstring`. `\nrccolstring` is supposed to take two text fields and make them into side- by-side miniboxes that span all of the space allocated fo...
100111
Shorten or extend xypic arrows
In an `xypic` or `xymatrix` diagram, is it possible to specify that an arrow should only cover part of the distance it normally would? In other words, for an arrow `\xymatrix{ A \ar[r] & B }`, or between two nodes in a more complex diagram `\ar@{>=>}"A";"B"`, I would like to specify that e.g. it should start at 0.3 of ...
100113
How to use biblatex with IEEE bibtex style?
http://mirrors.ctan.org/macros/latex/contrib/IEEEtran/bibtex/IEEEfull.bib defines a bibliography style. How to use that if I want to use biblatex to format my bibliography?
100119
When should I use \psgraph instead of \pspicture plus \psaxes?
I am new to PSTricks and want to plot some functions. The documentation of `pst-plot` explains (but not detailed enough) both `\psgraph` environment and the combination of `\pspicture` and `\psaxes`. The thing I want to know is: _When should I use one rather than the other one?_ Bonus question: I want to change the fon...
100121
How to detect whether "I'm on arXiv.org"?
I write a class. I'm interested in having a different page headers (and eventually make some other small differences) based on whether the class is used on the site arXiv.org or not. Minimal example follows: **myclass.cls** \ProvidesClass{myclass}[2013/02/27] \LoadClass{article} \date{} ...
100127
Define environment with two parts
I would like to define an environment having two parts, i.e. \begin{myenv} some text \nextpart{myenv} some more \end{myenv} I think I could do this by exploring the definition of `\begin`, `\end`, and `\newenvironment`, but I wonder if somebody has already done so.
10013
Why is this n with tilde disappearing in a BibTeX reference?
Working with the following abridged line in a BibTeX entry: author = {J. Pe\~{n}a} For some reason results in a BibTeX compilation to: J.~P. {n}a With a period and a space appearing and the tilde diacritic and the letter _e_ vanishing. I can fix this by wrapping the surname in brac...
100132
The statement of a theorem appearing on a new line
I'm using the `amsthm` package. The statement of the theorem currently appears immediately after the words "Theorem X." I'd like the statement of the theorem to appear on a new line. Is this possible?
100133
URLs in external references show up as question marks
So I have several external references like this one @misc{epa_2013, author = {EPA}, title = {National Pollutant Discharge Elimination System}, url = "{\url{http://cfpub.epa.gov/npdes/}}", note = "Accessed: 2/6/2013", } And when I compile my document, I get question marks i...
100134
PSTricks LaTeX to Readable LaTeX Code Conversion
I have opened the Editable PDF file in Inkscape, Version: 0.48 and saved as `LaTeX with PSTricks macros`. Now i have the LaTeX file with `PSTRICKS` code. I am not familer with `pstricks` package and how to do pstricks latex code to normal LaTeX code. MWE is: \documentclass{article} \usepackage{color} ...
100135
Vertical alignment in table environment and other issues
I'm having some difficulties with the table below. I don't understand why the text in the column 4 is not vertically centered. Also, the title of this column is not horizontally aligned with the titles of the 2nd and 3rd columns. Finally, the vertical line between the first and the second column is not continuous. ...
100138
What is wrong with defining \bal as \begin{align}?
I'm trying to define two commands `\bal` and `\eal` instead of inserting `\begin{align}` and `\end{align}` in my document, but in the code below, I'll get some errors. What is wrong with it? \documentclass{article} \usepackage{amsmath} \makeatletter \newcommand{\bal}{% \begingroup \...
100139
Prevent equation labeling to change sizes
Everytime i change equation font size using `\footnotesize` the label _(for example (3.12))_ on the right side also changes its size. Is tere a way to change equation font size but not its label font size? Or maybe even vice versa - to change label font size but not equation font size. This is how i usually write down ...
100145
Algorithm2e modify line numbers
I'm using the LaTeX `algorithm2e` package by defining \usepackage[ruled, linesnumbered, vlined]{algorithm2e} The `linesnumbered` argument adds lines numbers from [1,...,n] if we have an algorithm with n lines. I would like to know if there's any possibility to change the numbers in something like: [1...
10015
Package for taking notes
After reading a book, I often take notes on that book. It usually has my thoughts about what I have just read and many cites (often long, more that 2 or 3 paragraphs, sometimes even more than one page). I used to just type that all in LaTeX, but such notes are hard to read and look ugly (there is no visible diference b...
100150
Nomencl Reference Section Number
I'm writing a PhD thesis that includes many similar symbols. Therefore, I'd like to list in the nomenclature the section number at which each symbol is initially using (and therefore defined in the text). I'm aware you can list the page number, but I'd prefer the section number. Is there a way to do this? Here's a mini...
100152
\lstlistoflistings does not add spaces by chapter
I'm quite new in LaTeX and ended up with this problem: I'm using list of tables and list of lstlistings (`\listoftables`, `\lstlistoflistings`), both numbered by chapter. List of tables does add spaces before new chapters, list of lstlistings does not (see images below). How I can unify this behavior? I would prefer to...
100158
Ease the handling of labels
I want to ease the handling of labels in my document, and I want to show the label for a section if define a "variable". Currently I'm doing it like this Setting the up the "variable": \usepackage{etoolbox} \newtoggle{DEBUG} \toggletrue{DEBUG} %\togglefalse{DEBUG} Then I use it like this:...
100160
How to show structure windows in TeXnicCenter?
TeXnicCenter should be able to show window with structure of document: ![enter image description here](http://i.stack.imgur.com/ztKWL.png) I clicked through all menu but I am not able to find this option somewhere. I use last version (2.0 Beta 1) from their website.
100164
Time plot with pgfplots
I tried to plot this type of data x y 00:00 99.42 00:15 99.44 00:30 99.41 00:45 99.37 01:00 99.00 01:15 99.29 01:30 99.51 01:45 99.58 02:00 99.49 02:15 99.50 02:30 99.52 02:45 99.57 03:00 99.56 with `pgf...
100166
Compiling *.ins files in MiKTeX 2.9
I am trying to install the `hieroglf` package on my PC. I am running MiKTeX 2.9. When I try to run `latex hieroglf.ins` I get an error message indicating that the file can not be found. I know the file is in the directory in which I am working. This appears to be the same issue as the one indicated here: Compiling an i...
100169
Best way to present plain text results in a tex file?
I have some plain text results that I want to include into my bachelor thesis. The output looks like this: Protein: noname Length: 611 N-terminus: OUT Number of transmembrane helices: 3 Transmembrane helices: 518-537 546-563 578-602 Total entropy of the model: 17.0163 Entropy of the best ...
100170
Embed distributed LaTeX file/code to the PDF?
I have read of the possibility to embed the LaTeX source in a generated PDF, see the question here. Do you know of a way to do this with **distributed** TeX file, i.e. for a TeX file which is stored in many separate parts and put together using `include` an `input`? I'd rather not have to manually include all the `.tex...
100172
Headline with different fonts, and numeration
I need to add to my work headline of the next form: Author Name normal font, size 10 pkt In the next line name of work, size 10 pkt, italic. At right side page number, bold, italic, 14 pkt. After that horizontal line. Also I cannot find relationship between pkt from Word, and pt in Tex.
100177
Centering a dirtree
I would like to center a directory tree produced by the package `dirtree` but the following code fails. Just look at the 2nd tree... All the texts are centered. :-( ## M(not)WE \documentclass{scrartcl} \usepackage[utf8]{inputenc} \usepackage{dirtree} \begin{document} ...
100180
Prevent large line spacing on lines containing "high" symbols
I am using the notation `$\widetilde{\mathcal{F}_K}$` quite extensively in my paper. In each line where it appears, because the tilde makes the symbol a little higher than the other symbols, the line spacing between this line and the previous line is increased. This is both unaesthetic, and also probably wastes a space...
100181
A question on feasible region
I faced a difficulty to name the corner point of the feasible region determined by the below LaTeX/TikZ code, who can help me. \begin{figure}[htpb] \centering \begin{tikzpicture} \draw[gray!50, thin, step=0.5] (-2,-2) grid (14,14); \draw[very thick,->] (-2,0) -- (14,0) node[ri...
100184
Starting the numbering of the bibliography at a different number than one?
I am using BibTeX. I would like to start numbering of the bibliography at a later number than one. I could redefine `\thebibliography` in the preamble (an often cited 'solution'). A minimal example (`bla.tex`): \documentclass{article} \let\oldthebibliography=\thebibliography \let\oldendthebibliogr...
100186
How to write tex4ht source files
How can I learn how to edit `4ht` files? What should I read? I want to fix a number of issues in `ooffice.4ht` (inconsistent footnote size, style names which mismatch names used by LibreOffice, dangling space at the end of sentences, etc.) I've read the chapter on `tex4ht` in the _LaTeX Web Companion_ , but I'm still u...
100189
how to get lualatexmk to run in \nonstopmode
I use the engine `lualatexmk` to create my documents. This runs the entire pdf-generating-process several times until a stage is reached where an additional run of this process wouldn't change the result anymore. This, at least, is more or less how I believe lualatexmk works. The content of `lualatex.engine` is: ...
10019
Uncited references with internal bibliography
I'm using an internal bibliography in my main .tex file : \begin{thebibliography}{100} Is there a way to tell which entries I'm not referencing so I can remove them? I'm using texshop, and except for a LaTeX Warning: There were undefined references. it tells me nothing more specifi...
100190
How can I integrate matplotlib plots with pgfplots?
The python plotting library matplotlib will by default add margins to any plot that it generates. They can be reduced to a certain degree through some options of `savefig()`, namely `bbox_inches='tight'` and `pad_inches=0`. Even with those options, some margins will always remain, though. If a plot generated by matplot...
100193
Drawing Tapered Edges in Graph
I'd like to achieve the following effect in a TikZ picture when drawing a straight edge from one node to another. How can I achieve this tapering effect? Notice what happens when an edge exists from A to B and also from B to A (but I suspect this will come for free). This image comes from: www.win.tue.nl/~dholten/paper...
100194
pagebreak in ledpar (eledpar)
I am sort of restating this question -- however only sort of. I will (1) describe a problem, (2) assume something about the functions of `ledpar`, and (3) ask a question. # 1. Problem I am typesetting a bilingual edition of a text: edition on the left, translation on the right page. Since the translation is much longer...
100200
How to make a symbol adjust its size globally and locally
In the following code I have created a bullseye symbol. What I want to do is to allow its size to change dynamically both globally (document class option say 10pt, 11pt or 12pt) or locally by using `\small`, `\large`, and any command that declares size. That is if in the options of the document class you have `10pt` as...
100203
Constructing general ligatures
I know that LaTeX has macros `\ae`, `\oe` etc. for the standard ligatures (i.e. æ, œ). Is there a more general way to construct ligatures in the `equation` environment? I'm working in the language of higher types, with function variables f,g,h,.. and I want to denote sequences of functions as ligatures fs,gs,hs,... Thi...
100207
Placing a tikzpicture next to an align
I have a `tikzpicture` with an accompanying explanation in a math `align` environment. The `tikzpicture` is small enough that I'd like the explanation to appear next to (specifically, to the right) the `tikzpicture`. Here's the code that I have: \begin{center} \begin{tikzpicture}[xscale=.5, yscale=.5]...
100208
Why aren't qtrees aligned horizontally if they are at the end of a theorem with qed symbol enabled?
\documentclass{article} \usepackage{amsmath} \usepackage{amsthm} \usepackage{thmtools} \usepackage{qtree} \declaretheorem[name=Example,qed=\ensuremath{\triangleleft}]{example} \declaretheorem[name=Example2]{example2} \begin{document} \begin{example} Bla: ...
100209
Gobbling an argument if it starts with #
My problem comes from pandoc and markdown, but it is not directly related with these tools, but instead with "customizing" the resulting pdf via some tex macro programming, so I think it is on topic. I'm writting a document with markdown syntax and converting it to LaTeX (and html) via pandoc. This document contains hy...
100210
How do I redefine a custom environment that I have previously defined elsewhere?
I made a custom class for homework assignments and I've defined a solution environment as follows: \def\qed{\ensuremath{\square}} % <-QED Symbol \newenvironment{solution}{% <-Solution \par\addvspace{1em} \itshape{Solution:}} {\par\normalfont\hfill\qed\par\addvspace{\medskipamount}}%...
100212
How do I embed a gather environment within a custom environment?
I've tried defining the following custom environment, but I get errors: > \begin{gather} ended by \end{solution} etc... Here's a MWE showing my problem: \documentclass{article} \usepackage[fleqn]{mathtools} \newenvironment{solution}{% <-Solution \par\addvspace{1em} \itshape{...
100214
color fill an item of an enumerated list
I've recently seen How to "bubble in"/color fill an item counter ((A),(B),(C),...) in an enumerated list and I just wondered: what if I'd like to enumerate my list with the arabic numbers, i.e. 1,2,3 etc? What would be the code?
100215
Pushing citations to LaTeXila from JabRef
I've just starting learning the LaTeX ropes in the past couple weeks and I am loving it!! There is just one (last, yeah right!) thing that I am trying to get to work. I'm managing my citations with JabRef, because I really like the easy of editing in the GUI, and although I was planning on entering all my citations man...
100216
babel's \foreignlanguage works for Russian, but not for Serbian
I was trying to write the Serbian alphabet using: \usepackage[serbian, english]{babel} ... \foreignlanguage{serbian}{D d} But I get nothing. When I try this with e.g: \usepackage[russian, english]{babel} ... \foreignlanguage{russian}{D d} I get the correct character...
100221
Table of 2x2 tikzpictures
I'm attempting to condense 4 tikzpictures into a smaller space in my document. The solution I have is as follows: \documentclass{article} \usepackage[paperwidth=6in, paperheight=4in]{geometry} \usepackage[english]{babel} \usepackage[utf8x]{inputenc} \usepackage{amsmath} \usepackage{ams...
100223
topfigrule only for figure but not for tables
My tables have the captions above and are set with `booktabs`'s `\bottomrule` at the end. I would like to separate figure (having their caption below) from the text with a `\topfigrule` \newcommand{\topfigrule}{\hrule} _but_ not for tables, as they are already separated enough by the `\bottomrule`. H...
100225
how to comment text depending on a number
I have a latex document with 24 questions labeled with numbers from 1 to 8. I want to give a number x between 1 and 8 to latex in the preamble so that all the questions become commented except the ones numbered by x. Is it possible to do that? My idea was to write something like: \def\label{3} %this numbe...
100226
Trouble formatting createspace template in memoir
I have just begun to use `memoir` and I am already having trouble understanding exactly how to make this work. I will refer to the manual but I would like the experts here to explain to me in simple language exactly how this works. Below is the code of document which I got from Painless Memoir Class Book Template ...
100231
TikZ logic alignment
I'm trying to create various logic circuit diagrams using the circuit library of TikZ (it allows multi-input gates). I'm using a matrix, but this causes issues with the input wires not lining up with the input nodes (A and B). Also, the wires in general don't line up as nicely as they should do. There must be a better ...
100232
Shading a region below two edges in tikz?
> **Question** : In the following figure, how can I shade the region marked > "here"? ![How can I shade "here"?](http://i.stack.imgur.com/Z8n9D.png) I'm guessing there is an elegant solution via the `intersections` library, but I'm not sufficiently familiar with it. Here's a minimal working example of my LaTeX code: ...
100233
TikZ: remove/override auto option (arrow label positioning) from a defined style
I have a defined style which I am applying to many arrows. Most of the time, I want them to have label nodes positioned using `auto`, but occasionally I do not. Currently, I simply add `auto` wherever necessary. Since `auto` is the default, though, it would seem more natural to include it in the style; but if I do so, ...
100235
Latex Code for Symbol
Could someone please help me with the Latex code for the symbol below?: ![enter image description here](http://i.stack.imgur.com/1lmvo.png)
100237
How to use Koma-script only to change font size?
I've been using `\documentclass{article}`, but would like to set a default font outside the range of that document class. The recommended solution I found on tex.exchange was to use KOMA-script, but this has changed the default font and somehow made my document longer. **Is it possible to change the document font size*...
100245
Bakoma - how to view errors
When my latex doc has errors, Bakoma displays the arrows at the bottom right corner used to navigate between errors, but I cannot see what is the actual error - I do not see a console window and do not know how to view it. What am I missing?
100246
Install IDE without installing TexLive 2007
I've been trying so hard to make TexLive work on my Fedora, but I can't find a way. I've installed TeXLive 2012, but when I install Kile, it says it depends texlive2007, the old version. Then I tried to install TeXStudio, but it also depends of texlive2007. How can I install it without installing the old version? I'm u...
100247
Axis label placement in 3d plot far out but why?
I want to plot a dataset in a 3D pgfplots graph. It looks like a good start but somehow the label placement is far out. Boiling it down to a MWE did not give me any hints how to get the labels back in place. Is there any option I overlooked? My pgf and pgfplots version's are fairly recent, so it should not be this issu...
100248
How to draw a graph along with probabilty tables using TikZ package
I need help to draw a Directed Acyclic Graph of Bayesian Network along with probability of each node using TikZ package. Here is an example: ![enter image description here](http://i.stack.imgur.com/B7RzI.gif) Table grid can be a full or partial as in above example.
100249
`macro parameter character #' in horizontal mode - Texmaker
I use Texmaker and I keep getting this error: ! You can't use `macro parameter character #' in horizontal mode. However I can force compile it using `cmdline` as `pdflatex foo.tex`. Any idea what the error could be? \documentclass[a4paper,12pt]{article} \usepackage[paper=a4paper,le...
End of preview. Expand in Data Studio

CQADupstackTexRetrieval — BEIR, unified schema

A normalised copy of the dataset behind the mteb task CQADupstackTexRetrieval, one of the tasks of the BEIR benchmark as mteb defines it (a member of the aggregate task CQADupstackRetrieval). Same queries, documents and relevance judgements as the benchmark evaluates — reshaped into one strict schema shared by every dataset in this collection.

Source mteb/cqadupstack-tex @ 46989137a868 (the revision pinned in mteb)
Domain · languages stackexchange · eng
Queries / documents / qrels 2,906 / 68,184 / 5,154
Qrels per query min 1 · mean 1.774 · max 146
Score values 1 ×5,154
Layout queries · corpus · qrels, split test
License cc-by-sa-4.0

Schema

config columns rules
queries id: string, text: string ids unique and non-empty; every query has ≥ 1 qrel
corpus id: string, title: string, text: string title is always present ("" when the source has none)
qrels query-id: string, corpus-id: string, score: int32 referential integrity to both tables; no duplicate pairs; no floats

Files are Parquet, sorted by id, zstd-compressed, sharded at 500 MB. Every rule above is enforced by a validator before publishing; provenance.json records the source file hashes, what changed, and the output file hashes.

What changed from the source

  • byte-preserved all text — no whitespace, newline, or control-character normalisation
  • cast qrels.score double -> int32
  • kept 2 documents whose text is identical to another document's — a property of the source; note that models embed such documents identically and retrieval ties among them are broken by corpus order
  • renamed _id → id
  • renamed source splits (queries←queries/queries, corpus←corpus/corpus) to test

Load it

from datasets import load_dataset
queries = load_dataset("Hyukkyu/beir-cqadupstack-tex", "queries", split="test")
corpus  = load_dataset("Hyukkyu/beir-cqadupstack-tex", "corpus", split="test")
qrels   = load_dataset("Hyukkyu/beir-cqadupstack-tex", "qrels", split="test")

License and attribution

The data is redistributed under the source's terms — cc-by-sa-4.0. All credit belongs to the original authors; see the source repository and the references in mteb's task metadata (http://nlp.cis.unimelb.edu.au/resources/cqadupstack/). This repository is an independent repackaging and is not affiliated with the RTEB or MTEB maintainers.

License discrepancy. The upstream dataset card declares cc-by-sa-4.0 while mteb's TaskMetadata declares apache-2.0. This card carries the upstream value as the more conservative choice.

Downloads last month
46