I would like to know if there are practical ways of sharing latex texts for review with people that are not familiar with latex.  Currently I use pygmentise:  pygmentize -f html -O full -o ./header-analysis-2015.doc ./paper-contents.tex   The nice thing about e.g. MS Word is that it syntax highligts the document automatically, such that the reviewer is not destracted by the latex code.
Context: I prepare my scientific documents using LaTeX and compile to a PDF. I often need to seek comments on drafts from collaborators who do not use LaTeX. Most of these collaborators use Windows OS. Assume also that the collaborator does not need to edit the document.  They only need to be able to add comments to the document. Most would be familiar with the commenting system in MS Word, for example. I'd like to be able to give the collaborator some clear instructions about what software and system they should use to comment on the draft.  This should involve free software and an easy to use interface.  Question: What is a good strategy for getting comments on draft documents when the collaborator does not know LaTeX?  Initial thoughts: I know Adobe professional allows you to add comments to a PDF.  However, some collaborators don't have this software and it costs money.  I could send the raw LaTeX to the collaborator. However, given all the markup, the collaborator may find LaTeX source a bit mysterious.  UPDATE: After posting I noticed  to a similar question. Along with a number of other good tips (such as printing and getting paper comments), he mentions jarnal, xournal, and gournal as free cross-platform PDF annotators. I'd be curious to know whether experts have found them adequate for the above mentioned purpose and whether any of them are to be preferred. Others mention FoXIt. And yet others discuss the option of exporting to MS Word or Open Office and using the reviewing system within these programs.
I am using XeTeX and have the following short document:  \documentclass[a4paper,12pt]{article} \usepackage{amsmath,amsthm} \usepackage[MnSymbol]{mathspec} \usepackage[no-sscript]{xltxtra} \defaultfontfeatures{Mapping=tex-text} \setallmainfonts{Minion Pro}  \begin{document}  $\phi, \varphi, \delta \ldots A \vee B$  \end{document}    Now no matter what font I am using the punctuation marks in math mode (commas, dots, \ldots etc.) come out in Computer Modern. Is there a way to change this? Tail sum for expectation In , the tail sum formula for expectation is introduced for a nonnegative (0,1,...) discrete random variable $X$:  $$E(X) = \sum_{i=0}^\infty P(X &gt; i).$$   I wonder if there is a similar formula for nonnegative continuous random variable $X$:  $$E(X) = \int_0^\infty P(X &gt; x) dx?$$  If no, are there some conditions for it to hold? And how can it be proved?  Here is my thought:  If the cdf $F$ of $X$ is bijective, then $X=F^{-1}(U)$ for some random variable $U$ uniformly distributed over $[0,1)$. So $$E(X) =     \int_0^1 F^{-1}(u) du.$$  To prove the tail sum formula, it suffices to prove $$\int_0^1     F^{-1}(u) du = \int_0^\infty P(X &gt; x) dx.$$ But I am stuck here.   What's more, is the condition that the cdf $F$ of $X$ is bijective really necessary for tail sum formula to hold? Can tail sum formula be generalized to a random variable that is not necessarily nonnegative?   Thanks! What to do when I get an "attempt to read or write outside of disk 'hd0'" error and Boot Repair does not solve the problem? Why is 'ls' suddenly wrapping items with spaces in single quotes? I just noticed that on one of my machines (running Debian Sid) whenever I type ls any file name with spaces has single quotes surrounding it. I immediately checked my aliases, only to find them intact. wyatt@debian630:~/testdir$ ls 'test 1.txt'  test1.txt wyatt@debian630:~/testdir$ alias alias ls='ls --color=auto' alias wget='wget --content-disposition' wyatt@debian630:~/testdir$   Another test, with files containing single quotes in their names (also answering a request by jimmij): wyatt@debian630:~/testdir$ ls 'test 1.txt'  test1.txt  'thishasasinglequotehere'\''.txt' wyatt@debian630:~/testdir$ touch &quot;'test 1.txt'&quot; wyatt@debian630:~/testdir$ ls ''\''test 1.txt'\'''  test1.txt 'test 1.txt'          'thishasasinglequotehere'\''.txt'   update with new coreutils-8.26 output (which is admittedly much less confusing, but still irritating to have by default). Thanks to Pádraig Brady for this printout: $ ls &quot;'test 1.txt'&quot;   test1.txt 'test 1.txt'    &quot;thishasasinglequotehere'.txt&quot;  $ ls -N 'test 1.txt'  test1.txt test 1.txt    thishasasinglequotehere'.txt  Why is this happening? How do I stop it properly? To be clear, I myself set ls to automatically color output. It just never put quotes around things before. I'm running bash and coreutils 8.25. Any way to fix this without a recompile? EDIT: Appears the coreutils developers  to break with the convention and make this the global default.  UPDATE - October 2017 - Debian Sid has re-enabled the shell escape quoting by default.  And at the bottom of the reply chain to the previous bug report, &quot;the change was intentional and will remain.&quot;  I thought this had already been settled, but apparently it was just reverted so that the &quot;stable&quot; Debian branch could keep its &quot;feature freeze&quot; while getting the other fixes, etc. from the newer version. So that's a shame (in my opinion). UPDATE: April 2019: Just found a  that was caused by this change to ls. When you're confusing developers and generating false bug reports, I think it might be time to re-evaluate your changes. Update: Android toybox ls is now doing something similar to this but with backslashes instead of quotes. Using the -q option makes spaces render as 'question mark characters' (I have not checked what they are, since they're obviously not spaces), so the only fix I have found so far without rooting the device in question is to add this to a script and source it when launching a shell. This function makes ls use columns if in a terminal and otherwise print one-per-line, while tricking ls into printing spaces verbatim because it's running through a pipe. ls() {     # only way I can stop ls from escaping with backslashes     if [ -t 1 ]; then         /system/bin/ls -C $@ |cat     else         /system/bin/ls $@ |cat     fi } say by has the meaning of      6. indicating the period in which something happens: ‘this animal always hunts by night’   Then do we need to say, ‘Why does the sky glitter by night?’ And can’t we say, ‘Why does the sky glitter at night?’?   If we can use both, what’s the difference between the two? biblatex in a nutshell (for beginners) Animated textures don't work in Blender viewport playback Centos mysql version is 5.5 however PHPmyadmin still says version 5.1 When i run the following in my console:  [root@****~]# mysql -u root -p -e 'SELECT VERSION();' Enter password: +-----------+ | VERSION() | +-----------+ | 5.5.39    | +-----------+   Which should be the correct version.  However when i enter my PHPMYADMIN on my server it has the following specs:  Server: Localhost via UNIX socket Program: MySQL Programversion: 5.1.73 - Source distribution   So which version is the correct one and how do i make sure that the database is running on 5.5?  Note  I have already restarted sql several times without any changes Question about preposition -of- Is there a rule of integration that corresponds to the quotient rule? Best way to obtain clarifying information when reputation doesn't allow comments? How can I make a script (or make some changes) to allow me to turn the screen off in Ubuntu (12.04) whenever I want, the way thevscreen can be turned off in Cellphones?  And how can I make a combination of keys (a shortcut) to execute that script?  I want to conserve power.  I've seen this question    but there is no hotkey for it.  Moreover, in the answer, it is said that there are many ways to accomplish this so I'd like to know more. What is the use of the yield keyword in Python? What does it do? For example, I'm trying to understand this code1: def _get_child_candidates(self, distance, min_dist, max_dist):     if self._leftchild and distance - max_dist &lt; self._median:         yield self._leftchild     if self._rightchild and distance + max_dist &gt;= self._median:         yield self._rightchild    And this is the caller: result, candidates = [], [self] while candidates:     node = candidates.pop()     distance = node._get_dist(obj)     if distance &lt;= max_dist and distance &gt;= min_dist:         result.extend(node._values)     candidates.extend(node._get_child_candidates(distance, min_dist, max_dist)) return result  What happens when the method _get_child_candidates is called? Is a list returned? A single element? Is it called again? When will subsequent calls stop?   1. This piece of code was written by Jochen Schulz (jrschulz), who made a great Python library for metric spaces. This is the link to the complete source: [Module mspace][1]. What is the best possible way to check if a string can be represented as a number in Python?   The function I currently have right now is:  def is_number(s):     try:         float(s)         return True     except ValueError:         return False   Which, not only is ugly and slow, seems clunky. However I haven't found a better method because calling float in the main function is even worse. What happens if 2 separate abilities require you to sacrifice a creature? If i have two cards that force opponents to sacrifice every upkeep like for example  "At the beginning of each opponent’s upkeep, Mogis deals 2 damage to that player unless he or she sacrifices a creature."  And  "At the beginning of your upkeep, draw a card unless target opponent sacrifices a creature or pays 3 life."  Does the oppenent have to sacrifice twice? Or if they sacrifice Mogis's ability have they not allowed me to draw from indulgent tormentor? I've just updated to the latest Google Chrome Dev build, and they've changed from the annoying-but-ok new tab page to an ugly and less usable page.  On the old one, nine thumbnails was not enough, and now they've restricted it to eight.  There's an empty "Tips and Suggestions" box which I wouldn't want even if it had stuff in; they've added Recent Downloads - on the rare occasions when I need that, I'll hit Ctrl-J to open the Downloads tab; and the site-specific search box on the right has now gone!  Is there a way to get the old new tab page back, or a plugin to provide a superior one?   Update: I launch Chrome by pressing Win+R and entering "chrome" - I have a shortcut on the Path with a Target of "C:\Documents and Settings\&lt;user&gt;\Local Settings\Application Data\Google\Chrome\Application\chrome.exe" --old-new-tab-page and whilst double-clicking this shortcut brings up the previous new tab page, using the keyboard method results in the old one.  How do I get it working via the Run box? (Without using a batch file, which slows things down too much.)  Update 2: GRRR! Now they've gone and stopped the --old-new-tab-page parameter from working at all! I hate this new version of the page that they're forcing upon us - can anyone provide a method to get rid of it and get the decent page back? Let's say I have written an equation in my paper and numbered it:  y = a + bx    (1)   Then, later in the paper, I want to remind the reader by showing the same equation with the same equation number.  Sure, I can repeat the equation, but LaTeX gives it a new equationn number:  y = a + bx     (2)   How do I force LaTeX to use the original equation numbers? I want to untriangulate every object in my scene with this script:  import bpy  for ob in bpy.data.objects:     bpy.ops.mesh.tris_convert_to_quads(limit=0.9, uvs=False, vcols=False, sharp=False, materials=False)   But it doesn't work in object mode, any ideas on how I can get it working? I am currently in a clan with three members. When we tried to initiate a clan war it said we had insufficient clan requirements. Does anyone know what the full requirements are? Is there a minimum clan member requirement? How to list the properties of a JavaScript object?