1,634 reputation
21340
bio website ce.sharif.edu/~dousti
location Tehran, Iran
age 30
visits member for 4 years
seen Oct 6 at 11:45

I'm a Ph.D. candidate, studying computer science. My research interests include Foundations of Cryptography and Computational Complexity Theory.

My Ph.D. thesis title is "Conceptual Analysis and Improvement of Zero-Knowledge Models."


Feb
10
comment Splitting an algorithm across two columns
Related: tex.stackexchange.com/q/159428/1347
Jan
26
comment Incorrect reference to a line in algorithmic using hyperref
Thanks. Unfortunately, your edited answer did not quite work for me: First, it does not print the line number automatically, and second, it does not link to it (rather, it links to the algorithm itself). However, I took your excellent idea of using \phantomsections, and turned it into a working solution. Please check my answer.
Jan
26
comment Incorrect reference to a line in algorithmic using hyperref
Thanks for the quick response. Actually, a \phantomsection helps in jumping to the beginning of the algorithm, but not the specified line. Try adding a few more \States, and add a \label to the last one. You will see that a \ref will print the correct line number, but clicking it does not jump to the right one. (Though we can add a \phantomsection to each referenced line.)
Jan
14
comment Linebreak in Package algorithm2e
See also the related question if you want to skip line numbers for manually wrapped lines.
Oct
2
comment How to ensure that 2 couples of figures are on 2 facing pages?
To prevent errors like Output loop---200 consecutive dead cycles, you can increase the maximum dead cycles by inserting something like \maxdeadcycles=1000 in the preamble.
May
28
comment Processing a BibTeX database based on entry type
@Mico: You're right. Thanks. I corrected the mistake.
May
28
comment Processing a BibTeX database based on entry type
@Daniel: Thanks for the comment. "A" is a professor in my university, who asked me this question. If switching to biblatex can be done fairly automatically (i.e. he does not have to write the BST file from scratch), I think he's willing to do so.
Apr
17
comment Obtaining the location of the document class
If there were a command to get the location of the document class within itself, that would solve my problem :(
Apr
17
comment Obtaining the location of the document class
Thanks, but the organization is not just me and my friend. That was just an example. We cannot include the path for all employees!
Sep
14
comment Keyboard Font for LaTeX
@Raphink: See Philipp's answer!
Aug
25
comment Vertical vectors in angle brackets
Thanks. Mine was 2.0, and upgrading to 2.10 solved the issue.
Aug
25
comment Vertical vectors in angle brackets
Oddly enough, I get this error: Package pgfkeys Error: I do not know the key '/tikz/append after command' and I am going to ignore it. Perhaps you misspelled it.
Aug
13
comment Graph-like structures with Qtree
+1, thanks. There's one minor problem, though: although the \edge[white]; command hides the edge, it prevents the diagram from correctly being centered on the page.
Aug
12
comment Graph-like structures with Qtree
@Alan: Thanks. Could you please help me with the tikz-qtree code?
Jul
22
comment Tabular environment within the \newenvironment
Thanks. Worked like a charm!
Jul
22
comment Tabular environment within the \newenvironment
Sorry, one more problem: If I try something like \CDROM{\SampleCodes\C#\GetPageSize}{}{}, I get an error related to the use of #. I can't escape it since the catcode of \ has changed. I can't change the catcode of # since I need it to define #1, #2, and #3. What can I do?
Jul
18
comment Tabular environment within the \newenvironment
Thanks a lot for the edit.
Jul
18
comment Tabular environment within the \newenvironment
Great, thanks! Just one point: The second approach prints unwanted spaced and the command \endinput; i.e. instead of \SampleCodes\C++\GetPageSize it prints \SampleCodes \C ++\GetPageSize \endinput.
Jul
17
comment Different command definitions with and without optional argument
See also: latex optional arguments on StackOverflow.
Jul
17
comment Suppressing indentation of the next paragraph
@Martin: Peculiarly, it does not work either!