My script generates invalid formula in PDF (it replaces the text) and I don't know why [on hold]
up vote
0
down vote
favorite
Good evening.
I've got such piece of code in pdflatex:
documentclass[a4paper,12pt]{article}
usepackage[T1]{fontenc}
usepackage[polish]{babel}
usepackage[utf8]{inputenc}
usepackage{color}
setcounter{section}{-1}
defn{newline}
defq#1{$"#1"$}
defcom#1{{color[rgb]{0.25, 0.25, 0.25}//#1//}}
defaks#1{{large Aksjomat underline{#1}}}
defbel#1#2{#1 : #2}
defkon#1#2{#1 wedge #1}
defimp#1#2{#1 Rightarrow #2}
defrown#1#2{#1 iff #2}
defFA#1{bigwedgelimits_{#1}}
defClass{underline{Class}}
defUniv{underline{Univ}}
defNull{underline{null}}
defChar{underline{Char}}
defVar{underline{Var}}
begin{document}
%here is some code, without any def instruction
nn$FA{bel{K}{Class}}FA{x, y}(imp{kon{bel{x}{K}}{x = y}}{bel{y}{K}})$
%here is also some code, also without any def instruction
end{document}
Everything goes right, until this line. I don't know why, but in PDF it replacesx = y
with bel{x}{K}
I have no idea why, I'm beginner writer, who writes since few hours. Please help. I had similar behavior few hours ago, when I wanted to print date, using DTMdate
. My PDF had one page with correct date, without any other text on that page except that date. Rest of document was on next page, with wrong date, in place where there should be the date from the first page. It's complicated.
But returning, why my code replaces itself and passes other code, which is not there?
Thanks, Mike.
pdftex syntax
New contributor
put on hold as off-topic by Phelype Oleinik, Kurt, Sebastiano, samcarter, Stefan Pinnow 10 hours ago
- This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
up vote
0
down vote
favorite
Good evening.
I've got such piece of code in pdflatex:
documentclass[a4paper,12pt]{article}
usepackage[T1]{fontenc}
usepackage[polish]{babel}
usepackage[utf8]{inputenc}
usepackage{color}
setcounter{section}{-1}
defn{newline}
defq#1{$"#1"$}
defcom#1{{color[rgb]{0.25, 0.25, 0.25}//#1//}}
defaks#1{{large Aksjomat underline{#1}}}
defbel#1#2{#1 : #2}
defkon#1#2{#1 wedge #1}
defimp#1#2{#1 Rightarrow #2}
defrown#1#2{#1 iff #2}
defFA#1{bigwedgelimits_{#1}}
defClass{underline{Class}}
defUniv{underline{Univ}}
defNull{underline{null}}
defChar{underline{Char}}
defVar{underline{Var}}
begin{document}
%here is some code, without any def instruction
nn$FA{bel{K}{Class}}FA{x, y}(imp{kon{bel{x}{K}}{x = y}}{bel{y}{K}})$
%here is also some code, also without any def instruction
end{document}
Everything goes right, until this line. I don't know why, but in PDF it replacesx = y
with bel{x}{K}
I have no idea why, I'm beginner writer, who writes since few hours. Please help. I had similar behavior few hours ago, when I wanted to print date, using DTMdate
. My PDF had one page with correct date, without any other text on that page except that date. Rest of document was on next page, with wrong date, in place where there should be the date from the first page. It's complicated.
But returning, why my code replaces itself and passes other code, which is not there?
Thanks, Mike.
pdftex syntax
New contributor
put on hold as off-topic by Phelype Oleinik, Kurt, Sebastiano, samcarter, Stefan Pinnow 10 hours ago
- This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.
3
The definition ofkon
isdefkon#1#2{#1 wedge #1}
. It should bedefkon#1#2{#1 wedge #2}
. You are repeating the first argument.
– Phelype Oleinik
yesterday
WOW - I haven't saw that. Thanks!!!
– mpaw
yesterday
4
I'm voting to close this question as off-topic because it was solved in the comments (OP mistakenly used#1
instead of#2
in the definition).
– Phelype Oleinik
10 hours ago
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Good evening.
I've got such piece of code in pdflatex:
documentclass[a4paper,12pt]{article}
usepackage[T1]{fontenc}
usepackage[polish]{babel}
usepackage[utf8]{inputenc}
usepackage{color}
setcounter{section}{-1}
defn{newline}
defq#1{$"#1"$}
defcom#1{{color[rgb]{0.25, 0.25, 0.25}//#1//}}
defaks#1{{large Aksjomat underline{#1}}}
defbel#1#2{#1 : #2}
defkon#1#2{#1 wedge #1}
defimp#1#2{#1 Rightarrow #2}
defrown#1#2{#1 iff #2}
defFA#1{bigwedgelimits_{#1}}
defClass{underline{Class}}
defUniv{underline{Univ}}
defNull{underline{null}}
defChar{underline{Char}}
defVar{underline{Var}}
begin{document}
%here is some code, without any def instruction
nn$FA{bel{K}{Class}}FA{x, y}(imp{kon{bel{x}{K}}{x = y}}{bel{y}{K}})$
%here is also some code, also without any def instruction
end{document}
Everything goes right, until this line. I don't know why, but in PDF it replacesx = y
with bel{x}{K}
I have no idea why, I'm beginner writer, who writes since few hours. Please help. I had similar behavior few hours ago, when I wanted to print date, using DTMdate
. My PDF had one page with correct date, without any other text on that page except that date. Rest of document was on next page, with wrong date, in place where there should be the date from the first page. It's complicated.
But returning, why my code replaces itself and passes other code, which is not there?
Thanks, Mike.
pdftex syntax
New contributor
Good evening.
I've got such piece of code in pdflatex:
documentclass[a4paper,12pt]{article}
usepackage[T1]{fontenc}
usepackage[polish]{babel}
usepackage[utf8]{inputenc}
usepackage{color}
setcounter{section}{-1}
defn{newline}
defq#1{$"#1"$}
defcom#1{{color[rgb]{0.25, 0.25, 0.25}//#1//}}
defaks#1{{large Aksjomat underline{#1}}}
defbel#1#2{#1 : #2}
defkon#1#2{#1 wedge #1}
defimp#1#2{#1 Rightarrow #2}
defrown#1#2{#1 iff #2}
defFA#1{bigwedgelimits_{#1}}
defClass{underline{Class}}
defUniv{underline{Univ}}
defNull{underline{null}}
defChar{underline{Char}}
defVar{underline{Var}}
begin{document}
%here is some code, without any def instruction
nn$FA{bel{K}{Class}}FA{x, y}(imp{kon{bel{x}{K}}{x = y}}{bel{y}{K}})$
%here is also some code, also without any def instruction
end{document}
Everything goes right, until this line. I don't know why, but in PDF it replacesx = y
with bel{x}{K}
I have no idea why, I'm beginner writer, who writes since few hours. Please help. I had similar behavior few hours ago, when I wanted to print date, using DTMdate
. My PDF had one page with correct date, without any other text on that page except that date. Rest of document was on next page, with wrong date, in place where there should be the date from the first page. It's complicated.
But returning, why my code replaces itself and passes other code, which is not there?
Thanks, Mike.
pdftex syntax
pdftex syntax
New contributor
New contributor
New contributor
asked yesterday
mpaw
313
313
New contributor
New contributor
put on hold as off-topic by Phelype Oleinik, Kurt, Sebastiano, samcarter, Stefan Pinnow 10 hours ago
- This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.
put on hold as off-topic by Phelype Oleinik, Kurt, Sebastiano, samcarter, Stefan Pinnow 10 hours ago
- This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.
3
The definition ofkon
isdefkon#1#2{#1 wedge #1}
. It should bedefkon#1#2{#1 wedge #2}
. You are repeating the first argument.
– Phelype Oleinik
yesterday
WOW - I haven't saw that. Thanks!!!
– mpaw
yesterday
4
I'm voting to close this question as off-topic because it was solved in the comments (OP mistakenly used#1
instead of#2
in the definition).
– Phelype Oleinik
10 hours ago
add a comment |
3
The definition ofkon
isdefkon#1#2{#1 wedge #1}
. It should bedefkon#1#2{#1 wedge #2}
. You are repeating the first argument.
– Phelype Oleinik
yesterday
WOW - I haven't saw that. Thanks!!!
– mpaw
yesterday
4
I'm voting to close this question as off-topic because it was solved in the comments (OP mistakenly used#1
instead of#2
in the definition).
– Phelype Oleinik
10 hours ago
3
3
The definition of
kon
is defkon#1#2{#1 wedge #1}
. It should be defkon#1#2{#1 wedge #2}
. You are repeating the first argument.– Phelype Oleinik
yesterday
The definition of
kon
is defkon#1#2{#1 wedge #1}
. It should be defkon#1#2{#1 wedge #2}
. You are repeating the first argument.– Phelype Oleinik
yesterday
WOW - I haven't saw that. Thanks!!!
– mpaw
yesterday
WOW - I haven't saw that. Thanks!!!
– mpaw
yesterday
4
4
I'm voting to close this question as off-topic because it was solved in the comments (OP mistakenly used
#1
instead of #2
in the definition).– Phelype Oleinik
10 hours ago
I'm voting to close this question as off-topic because it was solved in the comments (OP mistakenly used
#1
instead of #2
in the definition).– Phelype Oleinik
10 hours ago
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
3
The definition of
kon
isdefkon#1#2{#1 wedge #1}
. It should bedefkon#1#2{#1 wedge #2}
. You are repeating the first argument.– Phelype Oleinik
yesterday
WOW - I haven't saw that. Thanks!!!
– mpaw
yesterday
4
I'm voting to close this question as off-topic because it was solved in the comments (OP mistakenly used
#1
instead of#2
in the definition).– Phelype Oleinik
10 hours ago