Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

simple latex question

Posted on 2006-06-06
1
Medium Priority
?
1,909 Views
Last Modified: 2012-06-27
I have the following latex code;

\parbox{\textwidth}{%
  \parbox[b]{.42\textwidth}{%
    <%company%>

    <%address%>
  }
  \parbox[b]{.2\textwidth}{
    \includegraphics[scale=0.2]{../<%templates%>/logo}
  }\hfill
  \begin{tabular}[b]{rr@{}}
  Tel: <%tel%>\\
  Email: info@mydomain.com
  \end{tabular}

  \rule[1.5em]{\textwidth}{0.5pt}
}



I don't know anything much about latex but I've had a play around and I cannot get the logo file (which is a png) to display right-justified on the page. Please can someone tell me what I need to change to make the logo right-justified like my email and tel. number?
0
Comment
Question by:tariqf
1 Comment
 
LVL 24

Accepted Solution

by:
fridom earned 2000 total points
ID: 16849617
Your problem is the use of tabular you declare two reigh justified fields but you are not using them. Unfortunatly you also used code one can not use in any way because of the templates in it. So I just can give you an example on how to use tabular

\documentclass[a4paper]{article}
\usepackage[german]{babel}
\begin{document}

\begin{tabular}{|l|r}
  left justified & right justified\\
left just 2 & right just 2
\end{tabular}

\end{document}

You see the first column is left justified the second right justified.  so it may be that you can just write:
\begin{tabular}[b]{rr@{}}
  Tel: <%tel%>\\
  Email: info@mydomain.com & the_picture

To get the picture besided the text right justified. However a justified picture will just work in another box which you have included.

I hope this gives you an idea.

Regards
Friedrich
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month11 days, 13 hours left to enroll

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question