emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* simple request letter - help
@ 2022-05-13 16:37 Andrés Ramírez
  2022-05-13 17:04 ` Juan Manuel Macías
  0 siblings, 1 reply; 8+ messages in thread
From: Andrés Ramírez @ 2022-05-13 16:37 UTC (permalink / raw)
  To: emacs-orgmode

Hi.

I am trying to do a simple request letter. This is the content of the
file.
--8<---------------cut here---------------start------------->8---
#+OPTIONS: date:nil author:nil timestamp:nil e:nil creator:nil toc:nil num:nil title:nil

* 
Me John Doe with ID number XXXXXXXX request to install me the water service ....

#+latex: \bigskip
I am sharing the payment receipt for the service in an attachment

#+latex: \bigskip
Sincerely.

#+BEGIN_EXPORT latex
\makebox[1.5in]{\hrulefill} \hspace {1.0in} \\
& John Doe \\
& ID: XXXXXXXX\\
#+END_EXPORT
--8<---------------cut here---------------end--------------->8---

When I export the file M-x org-export-distpach l p

The second and third paragraph do nat have right alignment as the first
paragraph.

How Could I solve it?.

Best Regards


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: simple request letter - help
  2022-05-13 16:37 simple request letter - help Andrés Ramírez
@ 2022-05-13 17:04 ` Juan Manuel Macías
  2022-05-13 17:19   ` andrés ramírez
  0 siblings, 1 reply; 8+ messages in thread
From: Juan Manuel Macías @ 2022-05-13 17:04 UTC (permalink / raw)
  To: Andrés Ramírez; +Cc: orgmode

Hi Andrés,

Andrés Ramírez writes:

> When I export the file M-x org-export-distpach l p
>
> The second and third paragraph do nat have right alignment as the first
> paragraph.

Can you please copy the contents of your .tex file here: `M-x
org-export-disptatch l l'?

Best regards,

Juan Manuel 


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: simple request letter - help
  2022-05-13 17:04 ` Juan Manuel Macías
@ 2022-05-13 17:19   ` andrés ramírez
  2022-05-13 18:22     ` Juan Manuel Macías
  0 siblings, 1 reply; 8+ messages in thread
From: andrés ramírez @ 2022-05-13 17:19 UTC (permalink / raw)
  To: Juan Manuel Macías; +Cc: orgmode

Hi. Juan.
My comments below.
>>>>> "Juan" == Juan Manuel Macías <maciaschain@posteo.net> writes:

    Juan> Can you please copy the contents of your .tex file here: `M-x org-export-disptatch l l'?

--8<---------------cut here---------------start------------->8---
% Intended LaTeX compiler: pdflatex
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{wrapfig}
\usepackage{rotating}
\usepackage[normalem]{ulem}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{capt-of}
\usepackage{hyperref}
\date{}
\title{}
\hypersetup{
 pdfauthor={Andrés Ramírez},
 pdftitle={},
 pdfkeywords={},
 pdfsubject={},
 pdfcreator={Emacs 28.1 (Org mode 9.5.2)}, 
 pdflang={English}}
\begin{document}


\section*{}
\label{sec:orgbc8783b}
Me John Doe with ID number XXXXXXXX request to install me the water service \ldots{}.

\bigskip
I am sharing the payment receipt for the service in an attachment

\bigskip
Sincerely.

\makebox[1.5in]{\hrulefill} \hspace {1.0in} \\
& John Doe \\
& ID: XXXXXXXX\\
\end{document}
--8<---------------cut here---------------end--------------->8---


Best Regards


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: simple request letter - help
  2022-05-13 17:19   ` andrés ramírez
@ 2022-05-13 18:22     ` Juan Manuel Macías
  2022-05-13 19:06       ` andrés ramírez
  0 siblings, 1 reply; 8+ messages in thread
From: Juan Manuel Macías @ 2022-05-13 18:22 UTC (permalink / raw)
  To: andrés ramírez; +Cc: orgmode

hi Andrés,

andrés ramírez writes:

> Hi. Juan.
> My comments below.

I'll explain what happens. There really isn't an alignment issue. TeX by
default applies a first line indent to paragraphs. It also defaults to
applying English typographical conventions, as is the case in your
document, where the first paragraph following a section is not indented.
This is what is happening :):

section
no indent -------------
indent       ----------
indent       ----------

Another more general typographical convention is that when paragraphs
are separated by a vertical space, they do not need to indent the first
line, as it is a redundant mark. Besides, you are making paragraph
separation by direct format (\bigskip). I usually recommend not applying
direct format in LaTeX, or applying it as little as possible. To disable
the first line indentation and make the paragraphs have a space between
them, it is enough that you add this:

#+LaTeX_Header: \parindent=0em\parskip=\bigskipamount

That way, you're giving the first line indentation a global value of
zero and a paragraph spacing value equivalent to \bigskip, and you don't
need to put a \bigsip every time you start a paragraph.

On the other hand, this code at the end does not give you an error?

\makebox[1.5in]{\hrulefill} \hspace {1.0in} \\
& John Doe \\
& ID: XXXXXXXX\\

best regards, 

Juan Manuel 


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: simple request letter - help
  2022-05-13 18:22     ` Juan Manuel Macías
@ 2022-05-13 19:06       ` andrés ramírez
  2022-05-13 20:30         ` Juan Manuel Macías
  2022-05-13 20:37         ` andrés ramírez
  0 siblings, 2 replies; 8+ messages in thread
From: andrés ramírez @ 2022-05-13 19:06 UTC (permalink / raw)
  To: Juan Manuel Macías; +Cc: orgmode

Hi. Juan.
My comments below.

>>>>> "Juan" == Juan Manuel Macías <maciaschain@posteo.net> writes:

[...]

    Juan> section is not indented.  This is what is happening :):

That is good to know.

    Juan> section no indent ------------- indent ---------- indent ----------

[...]

    Juan> is enough that you add this:

    Juan> #+LaTeX_Header: \parindent=0em\parskip=\bigskipamount

It worked for most part of the document. But I Think I need the double
of space before the signature.

[...]

    Juan> On the other hand, this code at the end does not give you an error?

    Juan> \makebox[1.5in]{\hrulefill} \hspace {1.0in} \\ & John Doe \\ & ID: XXXXXXXX\\

Right. It is giving me an error I have NOT noticed it because the pdf is
being generated.

Best Regards


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: simple request letter - help
  2022-05-13 19:06       ` andrés ramírez
@ 2022-05-13 20:30         ` Juan Manuel Macías
  2022-05-13 21:08           ` andrés ramírez
  2022-05-13 20:37         ` andrés ramírez
  1 sibling, 1 reply; 8+ messages in thread
From: Juan Manuel Macías @ 2022-05-13 20:30 UTC (permalink / raw)
  To: andrés ramírez; +Cc: orgmode

andrés ramírez writes:

> Right. It is giving me an error I have NOT noticed it because the pdf is
> being generated.

Your document is probably compiled on export with the
`-intercaction=nonstopmode' option, and thus does not break the
compilation with an error. In any case, I don't really understand why
you export that part literally to LaTeX and why you add the & at
beginning of line:

& John Doe\\
& ID: XXXXXXXX

Those characters are usually reserved for tabular
environments, so LaTeX returns an error. If you want to use an &
literally in LaTeX you must escape it as \&. But if you write the
anpersand directly in Org Mode you don't need to escape it, since Org
takes care of it when it exports the document.

Also, in the signature you could also avoid direct formatting. You can
define a simple environment, with an extra space before it, if you need
to add that space. This is a very elementary example, based on your
format. Then you can use in Org a special block, with the name of the
environment:

#+LaTeX_Header: \newenvironment{signature}{\bigskip\raggedright\makebox[1.5in]{\hrulefill}\par}{\par}

#+begin_signature
John Doe

ID: XXXXXXXX
#+end_signature

Best regards,

Juan Manuel 


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: simple request letter - help
  2022-05-13 19:06       ` andrés ramírez
  2022-05-13 20:30         ` Juan Manuel Macías
@ 2022-05-13 20:37         ` andrés ramírez
  1 sibling, 0 replies; 8+ messages in thread
From: andrés ramírez @ 2022-05-13 20:37 UTC (permalink / raw)
  To: Juan Manuel Macías, orgmode

Hi. Juan.

It ended this way:

--8<---------------cut here---------------start------------->8---
#+OPTIONS: date:nil author:nil timestamp:nil e:nil creator:nil toc:nil num:nil title:nil
#+LaTeX_Header: \parindent=0em\parskip=\bigskipamount

* 
Me John Doe with ID number XXXXXXXX request to install me the water service ....

I am sharing the payment receipt for the service in an attachment

Sincerely.

#+latex: \vspace{2cm}

#+BEGIN_EXPORT latex
\makebox[1.5in]{\hrulefill} \hspace {1.0in} \\
John Doe \\
ID: XXXXXXXX
#+END_EXPORT
--8<---------------cut here---------------end--------------->8---
Best Regards

[...]


    Me> Right. It is giving me an error I have NOT noticed it because the pdf is being generated.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: simple request letter - help
  2022-05-13 20:30         ` Juan Manuel Macías
@ 2022-05-13 21:08           ` andrés ramírez
  0 siblings, 0 replies; 8+ messages in thread
From: andrés ramírez @ 2022-05-13 21:08 UTC (permalink / raw)
  To: Juan Manuel Macías; +Cc: orgmode

Hi. Juan. Mi comments below.
[...]

    Juan> ID: XXXXXXXX #+end_signature

Adding that part:
--8<---------------cut here---------------start------------->8---
#+OPTIONS: date:nil author:nil timestamp:nil e:nil creator:nil toc:nil num:nil title:nil
#+LaTeX_Header: \parindent=0em\parskip=\bigskipamount
#+LaTeX_Header: \newenvironment{signature}{\vspace{2cm}\raggedright\makebox[1.5in]{\hrulefill}\newline}{\par}

* 
Me John Doe with ID number XXXXXXXX request to install me the water service ....

I am sharing the payment receipt for the service in an attachment

Sincerely.

#+begin_signature
John Doe \\
ID: XXXXXXXX
#+end_signature
--8<---------------cut here---------------end--------------->8---

Thanks for your help
Best Regards


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-05-13 21:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-13 16:37 simple request letter - help Andrés Ramírez
2022-05-13 17:04 ` Juan Manuel Macías
2022-05-13 17:19   ` andrés ramírez
2022-05-13 18:22     ` Juan Manuel Macías
2022-05-13 19:06       ` andrés ramírez
2022-05-13 20:30         ` Juan Manuel Macías
2022-05-13 21:08           ` andrés ramírez
2022-05-13 20:37         ` andrés ramírez

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).