494 reputation
111
bio website shelfari.com/joseph-riad
location Cairo, Egypt
age 26
visits member for 1 year, 9 months
seen Jul 3 at 16:10
  • Electronic engineering major. (MSc. holder, PhD. candidate)
  • Doing Linux sysadmin stuff for lack of someone better.
  • Lover of books: technical, non-technical, literary,...

Reach me at joseph dOT samy DoT albert At Google's email service

profile for Joseph R. on Stack Exchange, a network of free, community-driven Q&A sites


Jan
6
comment texworks is not launching!
Try starting it from a command prompt window. You might get a useful error message at the prompt that would help pinpoint the actual problem.
Jan
5
comment Adding newlines while writing text to a file
Sorry, I had to accept egreg's answer as it does exactly what I want. My bad for failing to be more specific earlier.
Jan
5
comment Adding newlines while writing text to a file
"I assume..." D'oh! Sorry, I posted the question at 3 AM after a long day. Thanks for the answer: it's exactly what I was looking for. Every day I see more value to learning the TeX internals...
Jan
5
revised Adding newlines while writing text to a file
added 14 characters in body
Jan
5
accepted Adding newlines while writing text to a file
Jan
5
revised Adding newlines while writing text to a file
added 298 characters in body
Jan
5
comment Adding newlines while writing text to a file
+1 This works and I have tried it already. Sorry I failed to mention this. The problem is when #1 itself has newlines. I'll update my question to reflect this info.
Jan
5
awarded  Nice Question
Jan
5
comment latex preamble for writing a book
I think you'll need to qualify your requirements way more than this for an objective answer to be possible.
Jan
5
asked Adding newlines while writing text to a file
Jan
5
comment Is there some reason I can't change catcodes inside a command?
@cfr Thank you. This gave me the correct solution: moving the \catcode commands outside the \mycommand definition. egreg's answer gave me the explanation for what was tripping me up.
Jan
5
accepted Is there some reason I can't change catcodes inside a command?
Jan
5
comment Is there some reason I can't change catcodes inside a command?
@egreg Ah. There's the bit of knowledge I was missing. Thank you very much.
Jan
5
comment Is there some reason I can't change catcodes inside a command?
Thanks for the explanation. What I don't get, though, why would the @ in @textbf be "already tokenized" with catcode 12 when I have explicitly redefined its catcode to be 0 only 2 lines before?
Jan
5
awarded  Citizen Patrol
Jan
5
asked Is there some reason I can't change catcodes inside a command?
Dec
25
comment Strange behavior with compiling
This is probably due to the book class (or equivalent) adding blank pages to ensure every chapter opens on an even page. This additional page (the declaration) would change the parity of all subsequent pages and cause a blank page to appear after every chapter and appendix. Although I highly discourage this, you can use \documentclass[oneside]{book} to disable the default behavior.
Dec
25
comment Beamer-titlepage-picture
@Educ You can of course use \includegraphics[height=4cm]{...} as you have done. I was just giving you an example.
Dec
25
answered Beamer-titlepage-picture
Dec
25
answered How to create a 'summary of changes' with latexdiff