Hi
I write couple of mathematics statements and I want them to be in one page
for example
Left side : I want to write some stuff
Right side : same also
but they are both in the same line
i uploaded the tex file , i hope someone will understand what i mean
Text Formatting ⇒ How to make text in same side left and right ?
-
- Posts: 6
- Joined: Sun Jul 06, 2014 3:34 pm
How to make text in same side left and right ?
- Attachments
-
- expanation.jpg (90.77 KiB) Viewed 8807 times
-
- Assignment 3.tex
- (2.25 KiB) Downloaded 426 times
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
How to make text in same side left and right ?
To be honest, i am not quite sure what you mean. But i gave it a shot anyways. There are some other things i changed in your code. Please have a close look.
If you have questions on that, just ask.
If you have questions on that, just ask.
Code: Select all
\documentclass[11pt]{article}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{parskip}
\usepackage[a4paper,body={},top=1.5cm, left=2.5cm,right=1cm,bottom=2.5cm,nohead]{geometry}
\newcounter{questioncnt}
\newcommand{\question}{\stepcounter{questioncnt}%
\par\bigskip\noindent{\large\bfseries Question
\thequestioncnt\space and it's answer}}
\begin{document}
%\begin{enumerate} %JB: There is no reason to use enumerate here?
\question
$\longrightarrow$\\
$\wedge$\\
$\vee$\\
\begin{tabular}{|c|c|c|c|c|c|c|c|c|}
\hline & & & 1 & 2 & 3 & 4 & 5 & 6 \\
\hline p & q & r & q $\longrightarrow$ r & p $\longrightarrow$ 1 & p $\longrightarrow$ r & q $\longrightarrow$ 3 & p $\vee$ q & 5 $\longrightarrow$ r \\
\hline T & T & T & T & T & T & T & T & T \\
\hline T & T & F & F & F & F & F & T & F \\
\hline T & F & T & T & T & T & T & T & T \\
\hline T & F & F & T & F & F & T & T & F \\
\hline F & T & T & T & T & T & T & T & T \\
\hline F & T & F & F & T & T & T & T & F \\
\hline F & F & T & T & T & T & T & F & T \\
\hline F & F & F & T & T & T & T & F & T \\
\hline
\end{tabular}
\bigskip$\therefore$ it is a valid argument because:
five rows found that are critical rows and true conclusion
\question
\begin{itemize}
\item During the summer fatima will go to new york or paris.
\item if she goes to new york , she will not visit eiffel tower.
\item if she does not visit eiffel tower , she will visit the statue of liberty.
\item she did not go to paris.
\end{itemize}
$\therefore$ she visited the statue of liberty.
\begin{minipage}{.45\textwidth}
1) n $\vee$ p\\
2) n $\longrightarrow$ $\neg$ e\\
3) $\neg$e $\longrightarrow$ l\\
4) $\neg$ p\\
$\therefore$ L
\end{minipage}
\hfill
\begin{minipage}{.45\textwidth}
Solution \\
(1) n $\vee$ p\\
(4) $\neg$ p\\
\rule{1in}{0.5pt}\\
n \\
\end{minipage}
\begin{minipage}{.45\textwidth}
n $\longrightarrow$ $\neg$ e\\
$\neg$ e $\longrightarrow$ l\\
\rule{1in}{0.5pt}\\
n $\longrightarrow$ l\\
\end{minipage}
\hfill
\begin{minipage}{.45\textwidth}
n $\longrightarrow$ l\\
n\\
\rule{1in}{0.5pt}\\\\
$\therefore$ l is valid argument
\end{minipage}
\end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
-
- Posts: 6
- Joined: Sun Jul 06, 2014 3:34 pm
How to make text in same side left and right ?
yes that what I wanted to do , it seems I should learn to use the stuff you use such as
\bigskip
\question
\hfill
begin{itemize}
begin{minipage}
thanks a lot brother for help
\bigskip
\question
\hfill
begin{itemize}
begin{minipage}
thanks a lot brother for help
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
How to make text in same side left and right ?
Hi Jack,
you can learn a lot reading internet posts and code snippets, but to be honest, you need a base to work on. You could be the best carpenter, but without a good fundament, the whole thing is destined to tumble down.
Respected user Nicola Talbot wrote an introduction, it might even be on your machine (type
After all, LaTeX is just a big macro package, so there really is no need to repeat yourself and do stuff multiple times. The
you can learn a lot reading internet posts and code snippets, but to be honest, you need a base to work on. You could be the best carpenter, but without a good fundament, the whole thing is destined to tumble down.
Respected user Nicola Talbot wrote an introduction, it might even be on your machine (type
texdoc dickimaw-novice
into a terminal and hit enter). Once the concrete is set, you are ready to build great house. After all, LaTeX is just a big macro package, so there really is no need to repeat yourself and do stuff multiple times. The
question
command was defined by myself (you can find this in packages like exsheets or the exam class in more powerful way) just to have every instance look the same.The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
-
- Posts: 3
- Joined: Wed Sep 24, 2014 9:15 am
How to make text in same side left and right ?
Don't use
\hfill
for the alignment, use \flushleft
and \flushright
.Code: Select all
\begin{minipage}[t]{7cm}
\flushleft
\textsc{Relator}
Prof. NameName\\
\end{minipage}
\hfill
\begin{minipage}[t]{7cm}
\flushright
\textsc{Candidato}
Name Name\\
Matricola: XXXXX
\end{minipage}