Missing endcsname inserted как исправить

I'm getting this error message when compliling my .tex file: ! Missing endcsname inserted. relax l.34 ... Preamble of my code is following: documentclass [a4paper,...

I’m getting this error message when compliling my .tex file:

! Missing endcsname inserted.

relax
l.34 …

Preamble of my code is following:

documentclass [a4paper,11pt,twocolumn] {article}
usepackage[left=2cm,text={17cm, 24cm},top=2.5cm]{geometry}
usepackage[utf8]{inputenc}
usepackage[czech]{babel}
usepackage[IL2]{fontenc}
usepackage{times}
usepackage{url}

providecommand{uv}[1]{quotedblbase #1textquotedblleft}

Could anyone please tell me, what might cause this error?

Here’s my code, but I’m not really sure, where is the problem. (I deleted the text in brackets that belongs to title page, just for the sake of anonymity)

begin{document}

author{}
title{}
date{}
maketitle

section{Hladká sazba}
Hladká sazba je sazba z~jednoho stupně, druhu a~řezu písma sázená na stanovenou šířku odstavce. Skládá se z odstavců, které obvykle začínají zarážkou, ale mo-hou být sázeny i~bez zarážky,--,rozhodující je celková grafická úprava. Odstavce jsou ukončeny východovou řádkou. Věty nesmějí začínat číslicí.
par
Barevné zvýraznění, podtrhávání slov či různé ve-likosti písma vybraných slov se zde také nepoužívá. Hladká sazba je určena především pro delší texty, jako je například beletrie. Porušení konzistence sazby působí v~textu rušivě a~unavuje čtenářův zrak.

section{Smíšená sazba} %label{smisena}
Smíšená sazba má o~něco volnější pravidla, jak hladká sazba. Nejčastěji se klasická hladká sazba doplňuje o~další řezy písma pro zvýraznění důležitých pojmů. Existuje uv{pravidlo}:

begin{quotation}
textsc{Čím více druhů, řezů, veli-kostí, barev písma a~jiných efektů použijeme, tím profesionálněji bude dokument vypadat. Čtenář tím bude vždy nadšen!}
end{quotation}

Tímto pravidlem se underline{nikdy} nesmíte řídit. Příliš časté zvýrazňování textových elementů a~změny Alph{huge{v}LARGE{e}Large{l}large{i}normalsize{k}small{o}footnotesize{s}scriptsize{t}tiny{i}} normalsize{písma} {large jsou} {Large známkou} {LARGE bfseries amatérismu} autora a~působí emph{bfseries velmi/rušivě}. Dobře navržený dokument nemá obsahovat více než 4 řezy či druhy písma. texttt{Dobře navržený dokument je decentní, ne chaotický.}
par
Důležitým znakem správně vysázeného dokumentu je konzistentní používání různých druhů zvýraznění. To například může znamenat, že textbf{tučný řez} písma bude vyhrazen pouze pro klíčová slova, emph{skloněný řez} pouze pro doposud neznámé pojmy a~nebude se to míchat. Skloněný řez nepůsobí tak rušivě a~používá se častěji. V~{LaTeX}u jej sázíme raději příkazem verb|emph{text}| než verb|textit{text}|.
par
Smíšená sazba se nejčastěji používá pro sazbu vědeckých článků a~technických zpráv. U~delších dokumentů vědeckého či technického charakteru je zvykem upozornit čtenáře na význam různých typů zvýraznění v~úvodní kapitole.

section{České odlišnosti}
Česká sazba se oproti okolnímu světu v~některých aspektech mírně liší. Jednou z~odlišností je sazba uvozovek. Uvozovky se v~češtině používají převážně pro zobrazení přímé řeči. V~menší míře se používají také pro zvýraznění přezdívek a~ironie. V~češtině se používá tento uv{typ uvozovek} namísto anglických textquotedblleft{uvozovek}".
par
Ve smíšené sazbě se řez uvozovek řídí řezem prvního uvozovaného slova. Pokud je uvozována celá věta, sází se koncová tečka před uvozovku, pokud se uvozuje slovo nebo část věty, sází se tečka za uvozovku.
par
Druhou odlišností je pravidlo pro sázení konců řádků. V~české sazbě by řádek neměl končit osamocenou jednopísmennou předložkou nebo spojkou (spojkou uv{a} končit může při sazbě do 25 liter). Abychom {LaTeX}u zabránili v~sázení osamocených předložek, vkládáme mezi předložku a~slovo nezlomitelnou mezeru znakem verb|~| (vlnka, tilda). Pro automatické doplnění vlnek slouží volně šiřitelný program emph{vlna} od pana Olšákafootnote{Viz url{ftp://math.feld.cvut.cz/pub/olsak/vlna/}.}.

end{document} 

Could anyone please tell me, what might cause this error?

mturan

Posts: 14
Joined: Wed Nov 10, 2010 10:01 pm

! Missing endcsname inserted. error when inserting figure

Hi there,

I am trying to figure out how to get my figure on my document and have no error message. When I use english babel, there is no problem, however when I use the turkish babel, I get the errors as shown below. I need to use the turkish babel for hyphenation. avl.jpg is attached. Do you have any idea why? Thanks for the help in advance

I use Texniccenter and the Miktex

! Missing endcsname inserted.
<to be read again>
relax
l.24 …raphics[width=0.5textwidth]{avl.jpg}

! Extra endcsname.
<recently read> endcsname
l.24 …raphics[width=0.5textwidth]{pics/avl.jpg}
I’m ignoring this, since I wasn’t doing a csname.

documentclass{article}
usepackage[latin5]{inputenc}
%usepackage[english]{babel}
usepackage[turkish]{babel}
usepackage{graphicx}
usepackage[left=4cm, right=2.5cm, top=2.5cm, bottom=2.5cm%, includefoot, headheight=13.6pt
]{geometry}
renewcommand{rmdefault}{phv} % Arial
renewcommand{sfdefault}{phv} % Arial %added by turan



begin{document}

section{MTRN}

LaTeXe{} 'de Türkçe metin.

Bugün de Devletler Hukukunun başlıca kişileri bağımsız devletler olmakla beraber,bunların yanı sıra yetkileri sınırlı devletler, devlet sayılmayan topluluklar vardır.

begin{figure}[h]
	centering
	includegraphics[width=0.5textwidth]{pics/avl.jpg}
	caption{deneme}
	label{fig:avl}
end{figure}


Değerlendirme merkezleri ise, işgörenin performansı ve iş yapış şekli ile ilgili olarak örgüt içinde kendisine bir geri bildirim sağlar. İşgörenlerin performansı karşılaştırılır ve kariyer gelişimi için uygun eğitimler belirlenir. 

end{document}
Attachments
avl.jpg
avl.jpg (24.76 KiB) Viewed 17650 times

Last edited by mturan on Wed Dec 22, 2010 12:31 pm, edited 3 times in total.


LaTeX Beginner's Guide LaTeX Cookbook

User avatar

frabjous

Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

! Missing endcsname inserted. error when inserting figure

Postby frabjous » Fri Dec 10, 2010 2:27 am

Seems to be a bug in babel regarding Turkish typesetting rules for inserting space around =; it’s applying it even in the untypeset «width=0.5» part of your includegraphics line.

There’s some discussion of this here.

A workaround seems to be to deactivate the = rule temporarily. For example, this works for me:

documentclass{article}
usepackage[utf8]{inputenc}
%usepackage[english]{babel}
usepackage[turkish]{babel}
usepackage{graphicx}
usepackage[left=4cm, right=2.5cm, top=2.5cm, bottom=2.5cm%, includefoot, headheight=13.6pt
]{geometry}
renewcommand{rmdefault}{phv} % Arial
renewcommand{sfdefault}{phv} % Arial %added by turan

begin{document}

section{MTRN}

LaTeXe{} 'de Türkçe metin.

Bugün de Devletler Hukukunun başlıca kişileri bağımsız devletler olmakla beraber,bunların yanı sıra yetkileri sınırlı devletler, devlet sayılmayan topluluklar vardır.

begin{figure}[h]
   centering
   shorthandoff{=}
   includegraphics[width=0.5textwidth]{avl.jpg}
   shorthandon{=}
   caption{deneme}
   label{fig:avl}
end{figure}


Değerlendirme merkezleri ise, işgörenin performansı ve iş yapış şekli ile ilgili olarak örgüt içinde kendisine bir geri bildirim sağlar. İşgörenlerin performansı karşılaştırılır ve kariyer gelişimi için uygun eğitimler belirlenir.

end{document}

(I changed the inputenc line to match my editor’s and the forum’s character encoding; you may need to change it back.)


mturan

Posts: 14
Joined: Wed Nov 10, 2010 10:01 pm

Re: ! Missing endcsname inserted. error when inserting figu

Postby mturan » Fri Dec 10, 2010 3:06 am

I read the discussion and used usepackage{xkeyval} initially which reduced the number of errors from 12 to 2 without a solution. Yours worked fine with me too but would there be any permanent solution to this issue somehow?


mturan

Posts: 14
Joined: Wed Nov 10, 2010 10:01 pm

! Missing endcsname inserted. error when inserting figure

Postby mturan » Wed Dec 22, 2010 11:35 am

This quote explains why it happens. Does anybody know how/what to change in the dtx file?

The file turkish.dtx defines all the language definition macros for the Turkish language. Turkish typographic rules specify that a little `white space’ should be added before the characters `:’, `!’ and `=’. In order to insert this white space automatically these characters are made `active’. Also frenhspacing is set.

from «Babel, a multilingual package for use with LATEX’s
standard document classes»

the way active characters are dealt with is completely changed. They are
called `shorthands’; one can have three levels of shorthands: on the user
level, the language level and on `system level’. A consequence of the new
way of handling active characters is that they are now written to auxiliary
les `verbatim’;

http://www.phys.ethz.ch/~ihn/latex/user.pdf


mturan

Posts: 14
Joined: Wed Nov 10, 2010 10:01 pm

! Missing endcsname inserted. error when inserting figure

Postby mturan » Wed Dec 22, 2010 12:31 pm

I made couple of changes in the turkish.ldf file and placed (save as) in the same directory where my project is at. Works fine now

Texniccenter 1.0 stable
Mixtex 2.9

   
1-%initiate@active@char{=}

2-addtoextrasturkish{%
  bbl@activate{:}bbl@activate{!}}%bbl@activate{=}}
3-%declare@shorthand{turkish}{=}{%
%  ifmmode
%    string=%
%  elserelax
%    ifhmode
%      ifdimlastskip>z@
%        unskipkernfontdimen2font
%        kern-1.4fontdimen3font
%      fi
%    fi
%    string=%
%  fi}


This is made by a bad label command (that you have not shown) it is best to only use a-z, 0-9 in label arguments. You have used some active character or a command that produced relax, most likely label{martedì}

Related videos on Youtube

LaTeX Tutorial 13 Two Common LaTeX errors

03 : 28

LaTeX Tutorial 13 Two Common LaTeX errors

How to Fix Missing Journal Names in Endnote

07 : 16

How to Fix Missing Journal Names in Endnote

Recover Hidden Column A.mp4

01 : 55

Recover Hidden Column A.mp4

[SOLVED] Are you missing a using directive or an assembly reference Visual Studio

01 : 57

[SOLVED] Are you missing a using directive or an assembly reference Visual Studio

How to Get Back Missing Safely Remove Hardware Icon for Pen Drive

03 : 26

How to Get Back Missing Safely Remove Hardware Icon for Pen Drive

Comments

  • I’m getting this error:

    Missing endcsname inserted. ...45}{martedìrelax }{figure.caption.21}{}}
    

    martedì.png is the name of the file (actually was, since I renamed it) and I get the same error for all files containing an accent.

    This is the line where I get the error in the .aux file:

    newlabel{fig:martedIeC {`i }}{{15a}{45}{martedìrelax }{figure.caption.21}{}}
    

    Do you have any suggestions?

    Thank you

    • you do not make it very easy for anyone to help. But this is made by a bad label command (that you have not shown) it is best to only use a-z, 0-9 in label arguments. You have used some active character or a command that produced relax

    • Don’t use accented letters in labels. You apparently did label{martedì}: you can’t. Well, in principle label{detokenize{martedì}} and ref{detokenize{martedì}} would work, but…

    • Thank you @DavidCarlisle, I removed accents from figures labels and captions and solved the problem. The (funny) thing is that I now included the file into my main one while before, when compiling it as a document itself I didn’t have any issue. Please answer the question so that the I could tick it

Recents

Понравилась статья? Поделить с друзьями:
  • Missing easyanticheat launcher dlls как исправить watch dogs 2
  • Missing dll nxcharacter dll error 0x7e dragon age origins
  • Missing dll mfplat dll error 0x7e
  • Missing cover xbox 360 как исправить
  • Missing constraints in constraint layout как исправить