Text FormattingWriting "check" marks on letters error

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
green2
Posts: 2
Joined: Sat Aug 01, 2015 8:24 am

Writing "check" marks on letters error

Post by green2 »

Dear!

I'm writing a script of exercises for a school project. Currently i'm at the 100th page and a serious problem occours - I can't seem to enable the "check" accent to display as I write the document - which is a standard key on my keyboard. Since there are many letters that are "checked" the \v{c}, \v{s}, \v{z} would look ugly and it takes a lot of time.
I'm using Texnic center as writer, miktex as typesetter, cp1250 as input encoding.

I have tried to delete the auxilary file, restart Texnic center; but nothing has changed.

Thanks for your sugestions!
If you need more data please ask.
Last edited by cgnieder on Sat Aug 01, 2015 9:41 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: Writing "check" marks on letters error

Post by Johannes_B »

Are you working with multiple files? Is it possible that one of them has another encoding? Have you tried retyping the character?

Does the log-file give any clue?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Writing "check" marks on letters error

Post by Stefan Kottwitz »

Welcome to the forum!

Do you get any error message? Is the problem about typing, or is the output wrong? You should use T1 font encoding and a font supporting it.

Try for example:

Code: Select all

\documentclass{article}
\usepackage[cp1250]{inputenc}
\usepackage[slovak]{babel}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\begin{document}
  č ň ž
\end{document}
Stefan
LaTeX.org admin
green2
Posts: 2
Joined: Sat Aug 01, 2015 8:24 am

Re: Writing "check" marks on letters error

Post by green2 »

@ Johannes_b
Yes, there are around 400 subfiles (each exercise, chapter, etc. is a separate file, that had already existed before - I'm doing grammar correction , math mistakes correction, better explainations, etc. )
I think the encoding might be it, since I have tried to open a new file and write a random text and it works fine.
The log file, doesn't give me anything, not even an error or a warning.

@ Stefan_K
Typing seems right, all the other subfiles are typed the same way. The input "čžš" gives an output of ¨AˇT´Lˇl´ Lˇ. It seems that this is the only file that is "corrpted". T1 fontenc doesn't make a difference (in getting the right output).

So, the answer I came with this morning is: copy the text, open a new file and paste it, so it is working.
Can you please explain why did it worked? Where is the encoding written, as Johannes suggested?

Thanks!
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Writing "check" marks on letters error

Post by Johannes_B »

A part of your fonts are saved in the wrong encoding. It is a bit like smoke sign, where every tribe of indians has its own smoke language.

When your computer thinks it reads smokes of tribe A, when in reality it is smoke of tribe B, there will be confusion.

You can read more about this Wikipedia:Code.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Re: Writing "check" marks on letters error

Post by Stefan Kottwitz »

The single file has the wrong encoding for some reason, it may have happened when saving.

The fix by copy & paste is good. It works because the source is opened with its encoding, you copied it to the RAM in the operating system, pasted it to the file with the other encoding. With copy & paste, it takes the encoding each time what fits. So it's an easy way to change. The conversion process is implicit by the operating system.

Stefan
LaTeX.org admin
Post Reply