Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Line number misalignment #1

Open
WesleyHsieh0806 opened this issue May 28, 2022 · 11 comments
Open

Line number misalignment #1

WesleyHsieh0806 opened this issue May 28, 2022 · 11 comments

Comments

@WesleyHsieh0806
Copy link

WesleyHsieh0806 commented May 28, 2022

Hi, I used the overleaf template provided in this repo and compiled the project. However, the line number seemed to be too close to the text (see the figure below). Is the format correct, or did I miss anything?
image

@xuyu0010
Copy link

xuyu0010 commented Jun 6, 2022

Same problem here, the pdf produced by compiling the given tex file seems to have this problem. The sampled pdf does not have this problem.

@craymichael
Copy link

craymichael commented Jun 8, 2022

To resolve this, change your TeX Live Version to 2020. In Overleaf, you can do this by:

  1. Click Menu in the upper-left corner
  2. Find the Settings submenu and click the dropdown
  3. Select 2020
  4. Recompile

Unsure what needs to be done to work with 2021, but this is the quick fix.

Edit: If you then get the error Error: Command \@EveryShipout@Hook already defined see the solution here.

@zhangliyun9120
Copy link

To resolve this, change your TeX Live Version to 2020. In Overleaf, you can do this by:

  1. Click Menu in the upper-left corner
  2. Find the Settings submenu and click the dropdown
  3. Select 2020
  4. Recompile

Unsure what needs to be done to work with 2021, but this is the quick fix.

Edit: If you then get the error Error: Command \@EveryShipout@Hook already defined see the solution here.

But changed TeX Live Version to 2020, and it seems to be still not good:

test

Is there any other better solution?thx

@trougnouf
Copy link

To resolve this, change your TeX Live Version to 2020. In Overleaf, you can do this by:

1. Click Menu in the upper-left corner

2. Find the **Settings** submenu and click the dropdown

3. Select 2020

4. Recompile

Unsure what needs to be done to work with 2021, but this is the quick fix.

Edit: If you then get the error Error: Command \@EveryShipout@Hook already defined see the solution here.

Same issue. I don't think this workaround can be applied to a local installation (= texlive 2022) so a better solution is needed.

@xingyuuchen
Copy link

Just modify the file wacv.sty line 221 from

% \put(\LenToUnit{\textwidth\kern 30pt},\LenToUnit{-\wacvruleroffset}){%right ruler
to
\put(\LenToUnit{\dimexpr \textwidth+30pt},\LenToUnit{-\wacvruleroffset}){%right ruler.

@zhangliyun9120
Copy link

zhangliyun9120 commented Jul 6, 2022

Just modify the file wacv.sty line 221 from

% \put(\LenToUnit{\textwidth\kern 30pt},\LenToUnit{-\wacvruleroffset}){%right ruler to \put(\LenToUnit{\dimexpr \textwidth+30pt},\LenToUnit{-\wacvruleroffset}){%right ruler.

The final solution should be:

1, Still setting TeX Live Version to 2021

2, % \put(\LenToUnit{\textwidth\kern 30pt},\LenToUnit{-\wacvruleroffset}){%right ruler
to
\put(\LenToUnit{\dimexpr \textwidth+20pt},\LenToUnit{-\wacvruleroffset}){%right ruler

@xingyuuchen
Copy link

xingyuuchen commented Jul 6, 2022

Just modify the file wacv.sty line 221 from
% \put(\LenToUnit{\textwidth\kern 30pt},\LenToUnit{-\wacvruleroffset}){%right ruler to \put(\LenToUnit{\dimexpr \textwidth+30pt},\LenToUnit{-\wacvruleroffset}){%right ruler.

The final solution should be:

1, Still setting TeX Live Version to 2021

2, % \put(\LenToUnit{\textwidth\kern 30pt},\LenToUnit{-\wacvruleroffset}){%right ruler to \put(\LenToUnit{\dimexpr \textwidth+20pt},\LenToUnit{-\wacvruleroffset}){%right ruler

Ah..., idk why you changed 30 to 20, 30 is from WACV's official style. If you check other CVF conference latex template e.g. CVPR you could also will find it 30.

@trougnouf
Copy link

Just modify the file wacv.sty line 221 from

% \put(\LenToUnit{\textwidth\kern 30pt},\LenToUnit{-\wacvruleroffset}){%right ruler to \put(\LenToUnit{\dimexpr \textwidth+30pt},\LenToUnit{-\wacvruleroffset}){%right ruler.

That works, thank you!

@zhangliyun9120
Copy link

zhangliyun9120 commented Jul 6, 2022

Just modify the file wacv.sty line 221 from
% \put(\LenToUnit{\textwidth\kern 30pt},\LenToUnit{-\wacvruleroffset}){%right ruler to \put(\LenToUnit{\dimexpr \textwidth+30pt},\LenToUnit{-\wacvruleroffset}){%right ruler.

The final solution should be:
1, Still setting TeX Live Version to 2021
2, % \put(\LenToUnit{\textwidth\kern 30pt},\LenToUnit{-\wacvruleroffset}){%right ruler to \put(\LenToUnit{\dimexpr \textwidth+20pt},\LenToUnit{-\wacvruleroffset}){%right ruler

Ah..., idk why you changed 30 to 20, 30 is from WACV's official style. If you check other CVF conference latex template e.g. CVPR you could also will find it 30.

Because when setting 30 the left and right margin is not the same, setting 20 will be same, as the follow comparison:

Setting 30:
1

Setting 20:
2

@xingyuuchen
Copy link

Just modify the file wacv.sty line 221 from
% \put(\LenToUnit{\textwidth\kern 30pt},\LenToUnit{-\wacvruleroffset}){%right ruler to \put(\LenToUnit{\dimexpr \textwidth+30pt},\LenToUnit{-\wacvruleroffset}){%right ruler.

The final solution should be:
1, Still setting TeX Live Version to 2021
2, % \put(\LenToUnit{\textwidth\kern 30pt},\LenToUnit{-\wacvruleroffset}){%right ruler to \put(\LenToUnit{\dimexpr \textwidth+20pt},\LenToUnit{-\wacvruleroffset}){%right ruler

Ah..., idk why you changed 30 to 20, 30 is from WACV's official style. If you check other CVF conference latex template e.g. CVPR you could also will find it 30.

Because when setting 30 the left and right margin is not the same, setting 20 will be same, as the follow comparison:

Setting 30: 1

Setting 20: 2

You'd better report a bug to CVPR, ICCV, ECCV, WACV,
because 30 is what thousands of previous papers used.

@zhangliyun9120
Copy link

zhangliyun9120 commented Jul 6, 2022

Just modify the file wacv.sty line 221 from
% \put(\LenToUnit{\textwidth\kern 30pt},\LenToUnit{-\wacvruleroffset}){%right ruler to \put(\LenToUnit{\dimexpr \textwidth+30pt},\LenToUnit{-\wacvruleroffset}){%right ruler.

The final solution should be:
1, Still setting TeX Live Version to 2021
2, % \put(\LenToUnit{\textwidth\kern 30pt},\LenToUnit{-\wacvruleroffset}){%right ruler to \put(\LenToUnit{\dimexpr \textwidth+20pt},\LenToUnit{-\wacvruleroffset}){%right ruler

Ah..., idk why you changed 30 to 20, 30 is from WACV's official style. If you check other CVF conference latex template e.g. CVPR you could also will find it 30.

Because when setting 30 the left and right margin is not the same, setting 20 will be same, as the follow comparison:
Setting 30: 1
Setting 20: 2

You'd better report a bug to CVPR, ICCV, ECCV, WACV, because 30 is what thousands of previous papers used.

Reported, and got the response as follows:

Do you mean that the line numbers on the right side are slightly further away from the text than the line numbers on the left side? If so, this is not really a bug -- it's the same style that other vision conferences like CVPR have used for many years. :) The line numbers only appear in the copy for peer review, so it won't affect your final paper.

I think maybe just keeping the original 30 is ok. btw, I found the margin of ECCV is fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants