LyXmulticols

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
cyborg
Posts: 3
Joined: Mon May 25, 2015 9:08 pm

multicols

Post by cyborg »

Hi there,

i'm new here, and i'm new with latex :)

but i want to create an formulary with latex, and i've little trouble...

i'm trying to make it with multicols but i've there always in the output invalid chars.. can you help me?

this is the code:
\documentclass{scrartcl}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{multicol}
\begin{document}
\begin{multicols}{2}
first try
\end{multicols}
\end{document}


this is the output from texshop:

Code: Select all

Text line contains an invalid character.
\begin{multicols}{2}
Attachments
Bildschirmfoto 2015-05-25 um 21.09.25.png
Bildschirmfoto 2015-05-25 um 21.09.25.png (349.53 KiB) Viewed 5549 times

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

rais
Posts: 419
Joined: Sun Nov 16, 2014 8:51 pm

multicols

Post by rais »

your invalid character is already in the input:

Code: Select all

\begin{multicols}{2}
starts with a control character (14h, what was known as Device Control 4, whatever that was used for)

Code: Select all

\documentclass{scrartcl}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{multicol}
\begin{document}
\begin{multicols}{2}
first try
\end{multicols}
\end{document}
KR
Rainer
cyborg
Posts: 3
Joined: Mon May 25, 2015 9:08 pm

multicols

Post by cyborg »

rais wrote:your invalid character is already in the input:

Code: Select all

\begin{multicols}{2}
starts with a control character (14h, what was known as Device Control 4, whatever that was used for)

Code: Select all

\documentclass{scrartcl}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{multicol}
\begin{document}
\begin{multicols}{2}
first try
\end{multicols}
\end{document}
KR
Rainer
sincerly i don't understand, why your code works, and mine not :( it's the same?
and what do you mean with "starts with a control character (14h, what was known as Device Control 4, whatever that was used for)" ? is { not equal to { ?
what do i fail to see?

and at this point i've an other question... i'm not more sure if multicolor is optimal for an formulary ? what do you mean about that? i'm thinking about table...

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

multicols

Post by Johannes_B »

The first about 30 characters in ASCII are not-printable and only for controlling devices, to ring a bell for example. One of those characters was, somehow, introduced into your document and LaTeX did not know what to do with it. If you are interested in why control characters exist and what they do, you can have a look at Wikipedia: Control character.

I am pretty sure that multicolumn isn't the right thing for formulas. Can you show us the formula in text form, as well as what you have in mind for the output? You can even upload a hand drawing ;-)
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
cyborg
Posts: 3
Joined: Mon May 25, 2015 9:08 pm

multicols

Post by cyborg »

Johannes_B wrote:The first about 30 characters in ASCII are not-printable and only for controlling devices, to ring a bell for example. One of those characters was, somehow, introduced into your document and LaTeX did not know what to do with it. If you are interested in why control characters exist and what they do, you can have a look at Wikipedia: Control character.
okay hmm that's i think its clear, but...
what i don't understand is why his code works and mine not, its exactly the same... i've to say i was trying a little bit.. and now i've seen, that sometimes an running code in an tex environment works, and there here in this environment here don't work.. exactly the same code cause of code clone with git. I think my environment here don't work fine :( I'm working with OS X and have TeXShop for editing and creating TeX documents.. maybe it's not the best and you have an idea?
Johannes_B wrote: I am pretty sure that multicolumn isn't the right thing for formulas. Can you show us the formula in text form, as well as what you have in mind for the output? You can even upload a hand drawing ;-)
yes sure :) i will upload an pdf document as example what i want... sry it's in german because am student in switzerland
01 - Aufgabensatz_Polynome_Eigenschaften.pdf
example
(306.67 KiB) Downloaded 410 times
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

multicols

Post by Johannes_B »

I don't know what you mean by the first part, the same source should work on your machine just as well as on everybody elses, provided the package versions and binaries are the same. On the other hand, just because the code looks similar, it doesn't mean it is similar. Invisible chars are often the cause of confusion.


Your pdf doesn't include one single piece of twocolumn, or twoclumn-like material? Where do you have trouble, where are you stuck?

I can see you are able to read german, you could be interested in joining goLaTeX, our german partner site.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply