Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [grammar]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
19 views

syntax package prevents underscores in file names [duplicate]

I'm working in Overleaf, and using the syntax package for Backus-Naur notation, as suggested here. However, it seems to interfere with using the \input command on files with underscores in their names....
user avatar
  • 1
1 vote
1 answer
65 views

How to Make Index Recognize an Exclamation Point as Part of an Entry

I would like to add an entry in an index which makes use of an exclamation point as an article of grammar. However (of course), Latex treats it as if I want to begin a subentry. Consider the following ...
user avatar
  • 4,979
1 vote
1 answer
78 views

Conflict between microtype and syntax packages

While using the syntax package together with microtype, I stumbled on a strange error: Missing font identifier.<to be read again>\chardef <TEST> ::= ` Missing number, treated as zero.<...
user avatar
  • 328
9 votes
3 answers
425 views

Syntax of TeX for primitives that demand braces

TeX defines some primitives which some of them expand (or try) the following tokens before execute itself; others even require argument between braces. But I couldn't get the point in this case. \...
user avatar
0 votes
0 answers
403 views

LanguageTool not working in TeXstudio

I followed the steps given in this answer. Note: I have TeXstudio 3.1.2 and LanguageTool 5.4. However, I still get LT current status: error. More completely, I get the following message when I run ...
user avatar
  • 297
0 votes
0 answers
32 views

Is it safe to omit braces around the command name being defined with \newcommand or \renewcommand? [duplicate]

I see both type of coding style in use: \newcommand{\hello}{Hello, World} \newcommand\hello{Hello, World} My question: Is there any situation where removing the braces around the command name being ...
user avatar
  • 2,897
0 votes
1 answer
49 views

Detect the same two sentences

In TeXStudio, spelling and grammar checks seem unable to detect the same two sentences written in a paragraph or document. Obviously, popular grammar solutions didn't catch this spelling mistake ...
user avatar
0 votes
1 answer
55 views

How can I add sentences format (commas, period and plus sign)

Greetings I would like to add sentence format comma, period and plus sign in the following latex code: \documentclass{article} \usepackage{amsmath} \usepackage{xcolor} \definecolor{color1}{RGB}{219, ...
user avatar
0 votes
0 answers
32 views

Is there any plugin that helps correcting gramatical issues in Overleaf?

I'm using Overleaf to write a book, I wonder if there is a package or plugin to add to the online version to correct all grammatical issues ?
user avatar
3 votes
2 answers
349 views

Using a listing inside a figure-like environment

I am writing a document dealing with formal grammars, containing numerous examples. I decided to use the lstlisting environment from the listings package over the mathematics align and give example ...
user avatar
  • 141
0 votes
1 answer
249 views

language french grammar in grammar

I use latex online with the overleaf website and I have a problem with the implementation of French language I used its packaging and nothing changes from English to French and here are the packaging ...
user avatar
1 vote
1 answer
222 views

french language, correction, grammar

Grammar-checking tool for use with LaTeX? I would like to know if there is a grammar correction software (french language)in Latex, i am using Texmaker for compilation. please help cause when i ...
user avatar
2 votes
2 answers
327 views

How to insert empty line in array environment with custom delimiter `@{...}`?

I am using the array environment with \begin{array}{l@{::=}ll} to typeset a formal grammar: How can I insert an empty line without my delimiter ::= appearing there? Minimal working example: % !TeX ...
user avatar
  • 1,084
3 votes
1 answer
1k views

LyX + Grammarly (or other external grammar checkers)

LyX has some capabilities for sending/receiving words in a server. I am wondering if it is possible to integrate Grammarly (or similar software) to LyX. Does anyone know how to configure LyX for this?...
user avatar
  • 135
4 votes
0 answers
544 views

How is TeX/LaTeX parsed?

I have some questions about TeX/LaTeX parser and parsing TeX/LaTeX after reading the following: Limitations when parsing TeX as a context-free grammar This is a PEG parser, which means it interprets ...
user avatar
1 vote
1 answer
70 views

glossaries-extra \glsaddkey footnote is not working

I'm writing my master thesis in german language using glossaries-extra for handling all the acronyms and stuff. Due to the german grammar, I need for some acronyms additional entries for the first ...
user avatar
  • 43
0 votes
1 answer
42 views

how to edit in one place and auto refer to other place

this question's title may not clearly. my english expression is not good. take an example to convey my problem: \someorder{a}{\paragraph{1999}ABCD} \someorder{a} I expect after compile this ...
user avatar
3 votes
2 answers
349 views

How to put a frame around the grammar syntax in LaTeX

How I can put a frame around the grammar syntax in LaTeX like in listings that we use frame = single? For example, for this grammar: \documentclass{article} \usepackage{syntax} \begin{document} \...
user avatar
4 votes
1 answer
4k views

Apply Grammarly in TexShop (Latex) on a Macbook

Is there some way to apply the Grammarly in the TexShop (latex software for Mac), say on a MacBook Pro? A related post is here: How Integrate Grammarly on online latex editors? I know that we can ...
user avatar
  • 2,159
6 votes
1 answer
193 views

Reproduce Lambek calculus notation in LaTeX

I'm trying to reproduce the following in my document: But I can't find a way of doing it. The closer that I got was with this code: \documentclass[a4paper, oneside, 10pt]{extarticle} \usepackage[...
user avatar
0 votes
0 answers
1k views

Single-letter words at the end of line [duplicate]

I am a beginner and I write article in slovak language. There is a rule to not leave single-letter words or preposition at the end of line (for example a, i, na, pre etc.) but to move them to the next ...
user avatar
  • 149
0 votes
1 answer
592 views

(TeXstudio) Ignore specific words in grammar check

I am new to the community and I have a question about the grammar check in TeXstudio. As we know, some words are not recognized by the grammar checker, e.g., binarization. I am not very comfortable ...
user avatar
  • 77
3 votes
2 answers
271 views

Using angular brackets in a grammar environment

How can I use angular <> brackets in a grammar environment? I want to describe that my programming language supports the following constructs: List<int> myList = new List<int>(); ...
user avatar
2 votes
1 answer
931 views

Changing underline color of LanguageTool in TeXstudio

I've recently installed LanguageTool to check grammar and spelling mistakes in TeXstudio. However, I often miss the errors because the gray-bluish underlining makes them hard to spot. Is there a way ...
user avatar
  • 125
31 votes
4 answers
15k views

Grammarly for texstudio

The Grammar Check of texstudio is Languagetool which is really not a grammar checker (although best in the opensource environment). I was wondering if anyone knows a way to connect one of the good ...
user avatar
  • 1,026
12 votes
2 answers
571 views

How to get correct grammar in the bibliography of a German document when the editor is an association?

I’m writing a German document with the biblatex-chicago package. One of my sources is a journal article where one editor is an association (a Verband). When I compile the code, the grammar in the ...
user avatar
  • 1,493
10 votes
0 answers
692 views

Comfortably typesetting Extended Backus-Naur-Form

On this site I've found some solutions how to typeset Backus-Naur-Forms, e.g.: How to type a Backus-Naur form in LaTeX Which package can be used to write BNF grammars? Unfortunately both solution ...
user avatar
  • 32.1k
2 votes
1 answer
1k views

How to use two dictionaries (.dic & .aff files) at the same time in texmaker?

I'm often writing documents in different languages and I like to use the autocorrection in texmaker. But its very annoying, if you always have to switch the dictionary file. So I tried the following: ...
user avatar
4 votes
1 answer
2k views

Problems Installing Language Tool in TexStudio

I'm trying to install LanguageTool in TexStudio, as described in Installing Language Tool in TexStudio, but I cannot succeed. LanguageTool server is working as can be seen from this test: When I out ...
user avatar
4 votes
1 answer
920 views

LanguageTool with N-Grams in TeXstudio in Windows

LanguageTool can be used as an addon for TeXstudio to check grammar (that happens rule-based). You can also use n-grams as an addition. The description on how to use the n-grams can be found here: ...
user avatar
  • 171
2 votes
1 answer
92 views

How to reproduce this keyword overview?

I need to describe keywords in a TeX document. It should look similar like the keyword section of the C# specification: I need some advice on how I can achieve this. Is this a transparent table? Can ...
user avatar
10 votes
1 answer
37k views

Language and spell check

How can I declare a language on Latex and have a grammar/spell check on the text? I would like to have highlighted the words that are not recognized by the system for the given language (English). ...
user avatar
  • 135
1 vote
1 answer
201 views

First use of glossaries' acronym using custom key (for other grammatical construct)

I'm using glosseries to manage my acronyms and added/defined the genitive form of a word using \glsaddkey*{gen}%key {\glsentrytext{\glslabel}XXXGEN}% default {\glsentrygen}% command analogous to \...
user avatar
  • 113
0 votes
0 answers
169 views

Is there a reference/list of standard LaTeX terminology?

I'm writing a program to manipulate LaTeX and I'd like to have access to some standard terminology. For example, is there a standard name for a string of the form \abcd, or \textbf{...} vs {\bf ...} (...
user avatar
0 votes
0 answers
472 views

Context free LaTex

Apparently, Parsing TeX is Turing-complete. I however, do not write TeX but LaTeX. In that process, I profit from assistance by editor plugins like Auctex et.al. These plugins rely on a syntactic ...
user avatar
  • 905
134 votes
4 answers
154k views

Integrating Grammarly with online LaTeX editors such as overleaf?

Grammarly does not work with LaTex, but I believe it still can be helpful: I like to use Grammarly Chrome extension with an online Latex editor. I tried sharelatex, overleaf , authorea and verbosus ...
user avatar
  • 2,036
4 votes
1 answer
2k views

Grammar check in TexWork

Is there any good grammar check plugin/program in TexWorks? Or is there any at all? I am looking for English language checker. Or maybe you have any solutions or offer for other options, how to check ...
user avatar
  • 131
2 votes
1 answer
12k views

Automatic grammar checker for LaTeX documents? [duplicate]

I'm currently writing a thesis. I'm using the Texmaker editor with the built-in dictionary for grammar correction (British English). Unfortunately, I'm short of time, so I don't have time to read ...
user avatar
  • 644
4 votes
3 answers
564 views

Combinatory Categorial Grammar style

i was looking arround here for this style of Categorial Grammar (see picture). However, i just find another types of notation, like the Prawtiz's style derivation. I want this style (some people call ...
user avatar
2 votes
2 answers
985 views

Is LaTeX capable of detecting grammatical errors in compiled document? [duplicate]

Although spelling mistakes can be easily corrected within compiler itself, I'm wondering if LaTeX is capable of detecting wrong use of grammar. Like if we write "Solution are" in MS word then both ...
user avatar
  • 433
2 votes
1 answer
607 views

Is there any grammar correcting software in TeXmaker?

I am interested in a grammar correcting software in TeXmaker if there is one around like in Microsoft word: it's possible to correct grammar : commas placing, redundant expression, non-formulated ...
user avatar
  • 227
2 votes
1 answer
810 views

French spell check for texMaker is not working?

i'm trying to correct my report using texmaker i have downloaded and added the french language to texmaker But when i click on the spell check button a window appears but no suggestions or ...
user avatar
  • 227
1 vote
1 answer
92 views

lhs2TeX and Syntax conflicting on <> characters

I'd like to use Syntax and lhs2TeX together, but Syntax's usage of <> in production rule names seems to conflict with lhs2TeX: \documentclass{article} \usepackage[nounderscore]{syntax} %...
user avatar
  • 945
1 vote
0 answers
93 views

Another \dots or \ldots Problem [duplicate]

MWE \documentclass[a4paper,11pt]{article} \begin{document} Victims!\dots\ Aren't we all? Victims?\dots\ Aren't we all? \end{document} That I want Like \dots or \ldots, but not 3 dots only 2 dots....
user avatar
  • 3,210
1 vote
0 answers
205 views

Problems with the standalone class when using certain environments and certain math symbols [duplicate]

I use TeX Live 2015. Update. I just found out that using the preview option to the class solves the problem, yet only crops the content vertically, not horizontally. I want to use a grammar ...
user avatar
  • 615
8 votes
2 answers
1k views

How do I include the EBNF square brackets on a new line and set the font to typewriter throughout my grammar in the syntax package?

I want to add an EBNF grammar to my document and following the answers here and here, it seems that the most popular package for this is syntax. However, in the documentation it is not clear how to ...
user avatar
  • 1,414
6 votes
1 answer
855 views

Typesetting a calculus' grammar

I am trying to typeset the grammars needed to describe the applied pi calculus. The outcome should look somewhat similar to the following attached example, especially concerning the alignment of the ...
user avatar
  • 420
0 votes
1 answer
89 views

Check spelling taking forever

I think it gets applied only for the current page. Anyway, the document has 2 pages. It get's stuck at 11%, why? What can I do to use this nice tool, called "Check spelling"?
user avatar
  • 1,341
5 votes
2 answers
2k views

Is there a formal grammar for *Equations* in TeX/LaTeX?

I've looked at this and this and understand there is no grammar of TeX as a whole. I am wondering if there is a grammar just for equations. They are relatively easy to identify in an amsmath file ...
user avatar
  • 265
13 votes
0 answers
337 views

What type of Chomsky hierarchy is TeX? [duplicate]

There are four types of chomsky hierarchy (specified for formal languages): Type-0 Recursively enumerable Type-1 Context-sensitive Type-2 Context-free Type-3 Regular I consider that, it should ...
user avatar
  • 231